aboutsummaryrefslogtreecommitdiff
path: root/hooks/requireAuth.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-27 16:40:07 +0300
committereug-vs <eug-vs@keemail.me>2020-06-27 16:40:07 +0300
commit0a6a6be1b43635c60e76669ac2a7ee8581d9b183 (patch)
treea8759f1d34e55d809a5b702fdca60a82117e1a2e /hooks/requireAuth.ts
parent8f5f077c318e9b466cc47ebab548ea0cd69052f0 (diff)
downloadwhich-api-0a6a6be1b43635c60e76669ac2a7ee8581d9b183.tar.gz
style: fix linting errors
Diffstat (limited to 'hooks/requireAuth.ts')
-rw-r--r--hooks/requireAuth.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/hooks/requireAuth.ts b/hooks/requireAuth.ts
index ac46e22..ba08f57 100644
--- a/hooks/requireAuth.ts
+++ b/hooks/requireAuth.ts
@@ -4,6 +4,8 @@ import isAuthenticated from './isAuthenticated';
export default iff(
isNot(isAuthenticated),
- () => { throw new NotAuthenticated('This endpoint requires auth!') }
+ () => {
+ throw new NotAuthenticated('This endpoint requires auth!');
+ }
);