Skip to content

Commit 77359bc

Browse files
committed
Avoid promise.finally for Node 6.*
1 parent e95252e commit 77359bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,12 @@ const shell = (
116116
runCommands(normalizedCommands, normalizedOptions, file)
117117
.then(() => {
118118
this.push(file)
119+
done()
119120
})
120121
.catch(error => {
121122
this.emit('error', error)
123+
done()
122124
})
123-
.finally(done)
124125
})
125126

126127
stream.resume()

0 commit comments

Comments
 (0)