summaryrefslogtreecommitdiff
path: root/src/api/serializers/post.ts
diff options
context:
space:
mode:
authorotofune <otofune@gmail.com>2017-11-06 18:38:59 +0900
committerotofune <otofune@gmail.com>2017-11-06 18:38:59 +0900
commitd7e1ffb0055f0786a707015350a14351b8a0fbf0 (patch)
treee54da7368fd38ad61be0c15deb9ac1f65cb93bc7 /src/api/serializers/post.ts
parentadd safety guard to serializers & fix importing uncorrect serializer (diff)
downloadsharkey-d7e1ffb0055f0786a707015350a14351b8a0fbf0.tar.gz
sharkey-d7e1ffb0055f0786a707015350a14351b8a0fbf0.tar.bz2
sharkey-d7e1ffb0055f0786a707015350a14351b8a0fbf0.zip
remove whitespace
Diffstat (limited to 'src/api/serializers/post.ts')
-rw-r--r--src/api/serializers/post.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/serializers/post.ts b/src/api/serializers/post.ts
index 5a63384f0e..03fd120772 100644
--- a/src/api/serializers/post.ts
+++ b/src/api/serializers/post.ts
@@ -57,7 +57,7 @@ const self = async (
_post = deepcopy(post);
}
- if (!_post) throw 'invalid post arg.';
+ if (!_post) throw 'invalid post arg.';
const id = _post._id;