Skip to content

Commit dbd7586

Browse files
committed
refactor: Support standard/no-callback-literal in the lib/compare-solution.js
1 parent 3a3c9d3 commit dbd7586

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/problem.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable standard/no-callback-literal */
2-
31
var path = require('path')
42
var getFile = require('./get-file')
53
var compare = require('./compare-solution')
@@ -25,7 +23,7 @@ module.exports = function createProblem (dirname) {
2523
var attemptPath = path.resolve(process.cwd(), args[0])
2624
compare(this.solutionPath, attemptPath, i18n, function (_, match, obj) {
2725
if (match) {
28-
return cb(true)
26+
return cb(null, true)
2927
}
3028

3129
if (!obj) {
@@ -45,7 +43,7 @@ module.exports = function createProblem (dirname) {
4543
require('./footer.js')
4644
]
4745

48-
cb(false)
46+
cb(null, false)
4947
}.bind(this))
5048
}
5149

0 commit comments

Comments
 (0)