mirror of
https://github.com/joelwmale/webhook-action.git
synced 2026-08-31 14:39:48 +08:00
update modules
This commit is contained in:
+2
-5
@@ -12,7 +12,7 @@ try {
|
||||
}
|
||||
const getRuleURI = require('eslint-rule-documentation')
|
||||
|
||||
module.exports = function(results) {
|
||||
module.exports = function (results) {
|
||||
let output = '\n'
|
||||
let errors = 0
|
||||
let warnings = 0
|
||||
@@ -82,8 +82,5 @@ function diff(a, b) {
|
||||
fs.writeFileSync(aPath, a, {encoding: 'utf8'})
|
||||
fs.writeFileSync(bPath, b, {encoding: 'utf8'})
|
||||
const result = childProcess.spawnSync('diff', ['-U5', aPath, bPath], {encoding: 'utf8'})
|
||||
return result.stdout
|
||||
.split('\n')
|
||||
.slice(2)
|
||||
.join('\n')
|
||||
return result.stdout.split('\n').slice(2).join('\n')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user