summaryrefslogtreecommitdiff
path: root/src/server/api
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-08-26 01:18:34 +0900
committerGitHub <noreply@github.com>2018-08-26 01:18:34 +0900
commita1fca2550ec7ff76e955c8e81bd1e785b0f61beb (patch)
tree58086582b6319664ed9571f45593d637e3f1a672 /src/server/api
parentMerge branch 'develop' of https://github.com/syuilo/misskey into develop (diff)
parentUse startsWith and endsWith for readability (diff)
downloadmisskey-a1fca2550ec7ff76e955c8e81bd1e785b0f61beb.tar.gz
misskey-a1fca2550ec7ff76e955c8e81bd1e785b0f61beb.tar.bz2
misskey-a1fca2550ec7ff76e955c8e81bd1e785b0f61beb.zip
Merge pull request #2488 from syuilo/refactor-string
Use startsWith and endsWith for readability
Diffstat (limited to 'src/server/api')
-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('!');