Skip to content

Commit 8e45e09

Browse files
committed
deno fmtのやり忘れ
1 parent a5f735a commit 8e45e09

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import { SimpleCodeFile } from "./updateCodeFile.ts";
2-
3-
/** objectがSimpleCodeFile型かどうかを判別する */
4-
export function isSimpleCodeFile(obj: unknown): obj is SimpleCodeFile {
5-
if (Array.isArray(obj) || !(obj instanceof Object)) return false;
6-
const code = obj as SimpleCodeFile;
7-
const { filename, content, lang } = code;
8-
return (
9-
typeof filename == "string" &&
10-
(typeof content == "string" ||
11-
(Array.isArray(content) &&
12-
(content.length == 0 || typeof content[0] == "string"))) &&
13-
(typeof lang == "string" || lang === undefined)
14-
);
15-
}
1+
import { SimpleCodeFile } from "./updateCodeFile.ts";
2+
3+
/** objectがSimpleCodeFile型かどうかを判別する */
4+
export function isSimpleCodeFile(obj: unknown): obj is SimpleCodeFile {
5+
if (Array.isArray(obj) || !(obj instanceof Object)) return false;
6+
const code = obj as SimpleCodeFile;
7+
const { filename, content, lang } = code;
8+
return (
9+
typeof filename == "string" &&
10+
(typeof content == "string" ||
11+
(Array.isArray(content) &&
12+
(content.length == 0 || typeof content[0] == "string"))) &&
13+
(typeof lang == "string" || lang === undefined)
14+
);
15+
}

0 commit comments

Comments
 (0)