fix(js): move require to top of file
This commit is contained in:
parent
b52bbc7f53
commit
a669686b16
@ -1,3 +1,5 @@
|
||||
const semverGt = require('semver/functions/gt');
|
||||
|
||||
/* eslint-disable prefer-destructuring */
|
||||
const ADMIN_USERNAME = process.env.NEXT_PUBLIC_ADMIN_USERNAME;
|
||||
const ADMIN_STREAMKEY = process.env.NEXT_PUBLIC_ADMIN_STREAMKEY;
|
||||
@ -181,7 +183,6 @@ export async function getGithubRelease() {
|
||||
}
|
||||
|
||||
function upToDate(local, remote) {
|
||||
const semverGt = require('semver/functions/gt');
|
||||
return !semverGt(remote, local);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user