Skip to content

Commit 3842748

Browse files
committed
change function name
1 parent ed5dfb8 commit 3842748

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/app/src/app/utils/get-type.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function getMode(title: string = '') {
4949
}
5050

5151
const tsRegex = /\.tsx?$/;
52-
function isJS(title: string) {
52+
function isTS(title: string) {
5353
if (
5454
tsRegex.test(title) ||
5555
title === 'tsconfig.json' ||
@@ -60,9 +60,9 @@ function isJS(title: string) {
6060
}
6161

6262
export default function getType(title: string) {
63-
const isJSType = isJS(title);
64-
if (isJSType) {
65-
return isJSType;
63+
const isTSType = isTS(title);
64+
if (isTSType) {
65+
return isTSType;
6666
}
6767

6868
return getMode(title);

0 commit comments

Comments
 (0)