Skip to content

Commit 1bbc4fd

Browse files
committed
Lint fix
1 parent 2c2a8c0 commit 1bbc4fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/routes/projects/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module.exports = [
7979
external: null,
8080
utm: null,
8181
});
82-
traverse(project).forEach(function(x) {
82+
traverse(project).forEach(function (x) {
8383
if (this.isLeaf && typeof x === 'string') this.update(req.sanitize(x));
8484
});
8585
// override values

src/routes/projects/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ module.exports = [
122122
const projectId = _.parseInt(req.params.projectId);
123123
// prune any fields that cannot be updated directly
124124
updatedProps = _.omit(updatedProps, ['createdBy', 'createdAt', 'updatedBy', 'updatedAt', 'id']);
125-
traverse(updatedProps).forEach(function(x) {
125+
traverse(updatedProps).forEach(function (x) {
126126
if (x && this.isLeaf && typeof x === 'string') this.update(req.sanitize(x));
127127
});
128128
let previousValue;

0 commit comments

Comments
 (0)