We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19da4d2 commit 15a4f19Copy full SHA for 15a4f19
src/index.js
@@ -48,15 +48,14 @@ const CARDS_QUERY = require('./queries/cards');
48
const ISSUE_QUERY = require('./queries/issue');
49
const PR_QUERY = require('./queries/pr');
50
51
-/**
52
- * Initialize HawkCatcher.
53
- */
54
-HawkCatcher.init({
55
- token: HAWK_TOKEN,
56
- context: {
57
- myOwnDebugInfo: '1234',
58
- },
59
-});
+if (HAWK_TOKEN) {
+ /**
+ * Initialize HawkCatcher.
+ */
+ HawkCatcher.init({
+ token: HAWK_TOKEN,
+ });
+}
60
61
/**
62
* Request the GraphQL API of Github with passed query and param.
0 commit comments