Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 945627e

Browse files
committed
fix eslint errors
1 parent 06fc807 commit 945627e

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

server/hooks/create-excerpt.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ module.exports = function (options = {}) { // eslint-disable-line no-unused-vars
2929
.replace(/(\ ){2,}/ig, ' ')
3030
.trim();
3131

32-
contentSanitized = trunc(contentSanitized, options.length).html
32+
contentSanitized = trunc(contentSanitized, options.length).html;
3333

34-
setByDot(hook.data, 'hasMore', contentSanitized.length < content.length)
34+
setByDot(hook.data, 'hasMore', contentSanitized.length < content.length);
3535

3636
// set excerpt
3737
setByDot(hook.data, `${options.field}Excerpt`, contentSanitized)
@@ -40,7 +40,7 @@ module.exports = function (options = {}) { // eslint-disable-line no-unused-vars
4040
throw new Error(err);
4141
}
4242
// trim content
43-
setByDot(hook.data, options.field, content.replace(/(\ ){2,}/ig, ' '))
43+
setByDot(hook.data, options.field, content.replace(/(\ ){2,}/ig, ' '));
4444

4545
return hook;
4646
};

server/seeder/development/users-admin.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const seedHelpers = require('../../helper/seed-helpers');
21
const { keys } = require('lodash');
32

43
module.exports = (seederstore) => {

server/services/contributions/hooks/notify-followers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = function () {
4343
}
4444

4545
return hook.app.service('notifications').create(notifications)
46-
.then((res) => {
46+
.then(() => {
4747
resolve(hook);
4848
})
4949
.catch(error => {

0 commit comments

Comments
 (0)