Skip to content

Commit 0a6a6be

Browse files
committed
style: fix linting errors
1 parent 8f5f077 commit 0a6a6be

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

hooks/isAuthenticated.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import { HookContext } from '@feathersjs/feathers';
2-
import { authenticate } from '@feathersjs/authentication';
3-
42

53
export default async (context: HookContext): Promise<boolean> => {
64
console.log(context.params.authenticated);

hooks/requireAuth.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import isAuthenticated from './isAuthenticated';
44

55
export default iff(
66
isNot(isAuthenticated),
7-
() => { throw new NotAuthenticated('This endpoint requires auth!') }
7+
() => {
8+
throw new NotAuthenticated('This endpoint requires auth!');
9+
}
810
);
911

services/feed/feed.hooks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import _ from 'lodash';
22
import { HookContext } from '@feathersjs/feathers';
3-
import { iff, combine } from 'feathers-hooks-common';
3+
import { iff } from 'feathers-hooks-common';
44
import isAuthenticated from '../../hooks/isAuthenticated';
55

66
const raiseNewVerifedPolls = async (context: HookContext): Promise<HookContext> => {
@@ -25,7 +25,7 @@ export default {
2525
after: {
2626
find: [
2727
iff(isAuthenticated, raiseNewVerifedPolls),
28-
iff(isAuthenticated, lowerOldPolls),
28+
iff(isAuthenticated, lowerOldPolls)
2929
]
3030
}
3131
};

0 commit comments

Comments
 (0)