summaryrefslogtreecommitdiff
path: root/src/server/api/common
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2018-08-25 22:42:26 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2018-08-25 22:42:26 +0900
commit08a59591ae25280cf11e49d0f5eab4d5a438e147 (patch)
tree58086582b6319664ed9571f45593d637e3f1a672 /src/server/api/common
parentMerge branch 'develop' of https://github.com/syuilo/misskey into develop (diff)
downloadsharkey-08a59591ae25280cf11e49d0f5eab4d5a438e147.tar.gz
sharkey-08a59591ae25280cf11e49d0f5eab4d5a438e147.tar.bz2
sharkey-08a59591ae25280cf11e49d0f5eab4d5a438e147.zip
Use startsWith and endsWith for readability
Diffstat (limited to 'src/server/api/common')
-rw-r--r--src/server/api/common/is-native-token.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/common/is-native-token.ts b/src/server/api/common/is-native-token.ts
index 0769a4812e..6afbc99ab5 100644
--- a/src/server/api/common/is-native-token.ts
+++ b/src/server/api/common/is-native-token.ts
@@ -1 +1 @@
-export default (token: string) => token[0] == '!';
+export default (token: string) => token.startsWith('!');