Skip to content

Commit 2adb00d

Browse files
committed
Update index.ts
1 parent 65894d0 commit 2adb00d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ export default class Gist implements IGist {
77
public readonly token: string;
88

99
constructor(token: string) {
10+
if (!token || token === "token") {
11+
throw new Error("Token required");
12+
}
1013
this.token = token;
1114
}
1215

0 commit comments

Comments
 (0)