Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanblock committed Apr 29, 2024
1 parent 663d385 commit 9dc9a8f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion check-creds/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* - Thus, sometimes it's ok to use dummy creds, but sometimes we need to halt (via this util)
*/
module.exports = function checkAwsCredentials (params, callback) {
// eslint-disable-next-line
let awsLite = require('@aws-lite/client')
let { inventory } = params

Expand Down
2 changes: 1 addition & 1 deletion fingerprint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = function fingerprint (params, callback) {
try {
fs.rmSync(staticJson, { force: true })
}
catch (err) {
catch {
let msg = `Error removing ${filename} file, please remove it manually or static asset calls may be broken`
update.warn(msg)
}
Expand Down
4 changes: 2 additions & 2 deletions test/fingerprint/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let globStub = sinon.stub().callsFake(() => [])
let glob = { globSync: globStub }
let shaStub = sinon.stub(sha, 'get').callsFake((file, callback) => callback(null, 'df330f3f12')) // Fake hash
let fingerprint = proxyquire('../../fingerprint', {
'glob': glob
'glob': glob,
})

let params = () => ({
Expand Down Expand Up @@ -165,7 +165,7 @@ test('fingerprint does does not generate static.json when set to external', t =>
// Globbing
globStub.resetBehavior()
globStub.callsFake(() => [
pathToUnix(join(process.cwd(), 'public', 'index.html'))
pathToUnix(join(process.cwd(), 'public', 'index.html')),
])
// Static manifest
let fsStub = sinon.stub(fs, 'writeFile').callsFake((dest, data, callback) => {
Expand Down
4 changes: 2 additions & 2 deletions updater/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let printer = {
},
// Write to console, add single extra line to buffer while running
restoreCursor: () => restore(),
write: t => out.write(t + '\033[1A' + '\n')
write: t => out.write(t + '\033[1A' + '\n'),
}
printer.hideCursor = () => printer.write('\u001B[?25l')

Expand All @@ -31,5 +31,5 @@ let spinner = { frames, timing }

module.exports = {
printer,
spinner
spinner,
}

0 comments on commit 9dc9a8f

Please sign in to comment.