We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65894d0 commit 2adb00dCopy full SHA for 2adb00d
src/index.ts
@@ -7,6 +7,9 @@ export default class Gist implements IGist {
7
public readonly token: string;
8
9
constructor(token: string) {
10
+ if (!token || token === "token") {
11
+ throw new Error("Token required");
12
+ }
13
this.token = token;
14
}
15
0 commit comments