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.
2 parents fa4efab + 043b2e9 commit b9e35ffCopy full SHA for b9e35ff
src/index.js
@@ -1,3 +1,5 @@
1
+const assert = require('assert');
2
+
3
const TASKCLUSTER_NET = 'https://taskcluster.net';
4
5
const cleanRoot = rootUrl => rootUrl.replace(/\/$/, '');
@@ -52,6 +54,7 @@ class LegacyUrls {
52
54
53
55
class Urls {
56
constructor(rootUrl) {
57
+ assert(rootUrl, 'no rootUrl provided');
58
this.rootUrl = cleanRoot(rootUrl);
59
}
60
0 commit comments