Skip to content

Commit

Permalink
Update helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Mar 30, 2023
1 parent c237874 commit a400cd4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/helpers.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
const assert = require('assert')

let fetch = null;
let core = null;
let context = null;

function setupGlobals(globals) {
fetch = globals.fetch
assert(fetch, 'fetch is not defined')
if (!fetch) throw new Error('fetch is not defined')

core = globals.core
assert(core, 'core is not defined')
if (!core) throw new Error('core is not defined')

context = globals.context
assert(context, 'context is not defined')
if (!context) throw new Error('context is not defined')
}

function sortVersions(versions) {
Expand Down

0 comments on commit a400cd4

Please sign in to comment.