Skip to content

Commit aa0d6ae

Browse files
fix: close the test compression stream (#1865)
1 parent fc6c349 commit aa0d6ae

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

js/isomorphic-git/index.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4912,14 +4912,14 @@ async function browserDeflate(buffer) {
49124912
function testCompressionStream() {
49134913
try {
49144914
const cs = new CompressionStream('deflate');
4915+
cs.writable.close();
49154916
// Test if `Blob.stream` is present. React Native does not have the `stream` method
49164917
const stream = new Blob([]).stream();
49174918
stream.cancel();
4918-
return !!cs
4919+
return true
49194920
} catch (_) {
4920-
// no bother
4921+
return false
49214922
}
4922-
return false
49234923
}
49244924

49254925
async function _writeObject({

js/isomorphic-git/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4906,14 +4906,14 @@ async function browserDeflate(buffer) {
49064906
function testCompressionStream() {
49074907
try {
49084908
const cs = new CompressionStream('deflate');
4909+
cs.writable.close();
49094910
// Test if `Blob.stream` is present. React Native does not have the `stream` method
49104911
const stream = new Blob([]).stream();
49114912
stream.cancel();
4912-
return !!cs
4913+
return true
49134914
} catch (_) {
4914-
// no bother
4915+
return false
49154916
}
4916-
return false
49174917
}
49184918

49194919
async function _writeObject({

js/isomorphic-git/index.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/isomorphic-git/index.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/isomorphic-git/size_report.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)