style(standard): fix ternaries
This commit is contained in:
@@ -12,9 +12,9 @@ module.exports = {
|
||||
|
||||
cb(
|
||||
null,
|
||||
/\.\.HEAD/.test(command) ?
|
||||
rawCommits[0] :
|
||||
rawCommits.join()
|
||||
/\.\.HEAD/.test(command)
|
||||
? rawCommits[0]
|
||||
: rawCommits.join()
|
||||
)
|
||||
},
|
||||
'@noCallThru': true
|
||||
|
||||
@@ -67,7 +67,6 @@ test('plugin pipelines', (t) => {
|
||||
})
|
||||
|
||||
test('normalize and load plugin', (t) => {
|
||||
|
||||
t.test('load from string', (tt) => {
|
||||
const plugin = plugins.normalize('./dist/lib/plugin-noop')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user