Code style changes to use === and comparison to undefined
This commit is contained in:
parent
c9b40bbd74
commit
416824ad56
2 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ export function deleteFile(req, res) {
|
||||||
|
|
||||||
export function getFileContent(req, res) {
|
export function getFileContent(req, res) {
|
||||||
Project.findById(req.params.project_id, (err, project) => {
|
Project.findById(req.params.project_id, (err, project) => {
|
||||||
if (err || project == null) {
|
if (err || project === null) {
|
||||||
res.status(404).send({ success: false, message: 'Project with that id does not exist.' });
|
res.status(404).send({ success: false, message: 'Project with that id does not exist.' });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
export function resolvePathToFile(filePath, files) {
|
export function resolvePathToFile(filePath, files) {
|
||||||
if (typeof filePath === 'undefined') {
|
if (filePath === undefined) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue