Remove unnecessary return statements in ::setResult()
MODIFY
lib/project/results-model.js
lib/project/results-model.js
@@ -177,7 +177,7 @@ module.exports = class ResultsModel {
},
(result, error) => {
if (result) {
- return this.setResult(result.filePath, Result.create(result))
+ this.setResult(result.filePath, Result.create(result))
} else {
if (this.searchErrors == null) { this.searchErrors = [] }
this.searchErrors.push(error)
@@ -278,9 +278,9 @@ module.exports = class ResultsModel {
setResult (filePath, result) {
if (result) {
- return this.addResult(filePath, result)
+ this.addResult(filePath, result)
} else {
- return this.removeResult(filePath)
+ this.removeResult(filePath)
}
}

Remove unnecessary return statements in ::setResult()