Skip to content

Commit 2529ede

Browse files
committed
Lint
1 parent 8cb07fd commit 2529ede

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/pretty-print.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
success (ts) {
77
let check = chalk.green('✓')
88
let msg = chalk.grey('Logs')
9-
let time = chalk.green.bold((Date.now() - ts) / 1000 + ' seconds')
9+
let time = chalk.green.bold(((Date.now() - ts) / 1000) + ' seconds')
1010
console.log(check, msg, time)
1111
},
1212

@@ -47,13 +47,13 @@ module.exports = {
4747
console.log(color(JSON.stringify(json, null, 2)))
4848
}
4949
}
50-
catch (e) {
50+
catch {
5151
// not json, just print
5252
console.log(color(item.trim()))
5353
}
5454
})
5555
console.log(' ')
5656
}
5757
})
58-
}
58+
},
5959
}

src/read-logs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function read ({ aws, name }, callback) {
3737
aws.cloudwatchlogs.DescribeLogStreams({
3838
logGroupName: name,
3939
descending: true,
40-
orderBy: 'LastEventTime'
40+
orderBy: 'LastEventTime',
4141
})
4242
.then(data => callback(null, data))
4343
.catch(err => {
@@ -70,6 +70,6 @@ function read ({ aws, name }, callback) {
7070
let events = results.map(r => r.events).reduce((a, b) => a.concat(b))
7171
callback(null, events)
7272
}
73-
}
73+
},
7474
], callback)
7575
}

test/get-logical-id-tests.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ let inventory
99
function setUp () {
1010
let fakePluginPath = join('src', 'plugins', 'myplugin.js')
1111
let tmp = mockTmp({
12-
[fakePluginPath]: '// fake file contents'
12+
[fakePluginPath]: '// fake file contents',
1313
})
1414
mockRequire(join(tmp, fakePluginPath), {
1515
set: {
1616
customLambdas: () => {
1717
return {
1818
name: 'a-custom-lambda',
19-
src: join('src', 'myplugin', 'custom-funk')
19+
src: join('src', 'myplugin', 'custom-funk'),
2020
}
21-
}
22-
}
21+
},
22+
},
2323
})
2424
return tmp
2525
}

0 commit comments

Comments
 (0)