Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfcd466

Browse files
committed
De-lint.
1 parent 2b3cfe0 commit dfcd466

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/git-service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ module.exports = class GitService {
321321
return !fileDiff.isUntracked() ? this._indexBlob(oldPath) : null
322322
})
323323
.then(content => {
324-
let newContent = (content ? content : '')
324+
let newContent = content || ''
325325

326326
for (let patchText in patches) {
327327
newContent = JsDiff.applyPatch(newContent, patchText)
@@ -380,7 +380,7 @@ module.exports = class GitService {
380380
}
381381
})
382382
.then(content => {
383-
let newContent = (content ? content : '')
383+
let newContent = content || ''
384384

385385
for (let patchText in patches) {
386386
patchText = this._reversePatch(patchText)

0 commit comments

Comments
 (0)