Skip to content

Commit 416824a

Browse files
committed
Code style changes to use === and comparison to undefined
1 parent c9b40bb commit 416824a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/controllers/file.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export function deleteFile(req, res) {
111111

112112
export function getFileContent(req, res) {
113113
Project.findById(req.params.project_id, (err, project) => {
114-
if (err || project == null) {
114+
if (err || project === null) {
115115
res.status(404).send({ success: false, message: 'Project with that id does not exist.' });
116116
return;
117117
}

server/utils/filePath.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export function resolvePathToFile(filePath, files) {
2-
if (typeof filePath === 'undefined') {
2+
if (filePath === undefined) {
33
return false;
44
}
55

0 commit comments

Comments
 (0)