Skip to content

Commit a45b1b4

Browse files
committed
Revert "Avoid promise.finally for Node 6.*"
1 parent 5d33968 commit a45b1b4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,11 @@ const shell = (
117117
runCommands(normalizedCommands, normalizedOptions, file)
118118
.then(() => {
119119
this.push(file)
120-
done()
121120
})
122121
.catch(error => {
123122
this.emit('error', error)
124-
done()
125123
})
124+
.finally(done)
126125
})
127126

128127
stream.resume()

0 commit comments

Comments
 (0)