Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b3cfe0 commit dfcd466Copy full SHA for dfcd466
lib/git-service.js
@@ -321,7 +321,7 @@ module.exports = class GitService {
321
return !fileDiff.isUntracked() ? this._indexBlob(oldPath) : null
322
})
323
.then(content => {
324
- let newContent = (content ? content : '')
+ let newContent = content || ''
325
326
for (let patchText in patches) {
327
newContent = JsDiff.applyPatch(newContent, patchText)
@@ -380,7 +380,7 @@ module.exports = class GitService {
380
}
381
382
383
384
385
386
patchText = this._reversePatch(patchText)
0 commit comments