Skip to content

Commit e329761

Browse files
committed
Update init.js
1 parent 1f492a5 commit e329761

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmarks/init.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ if (mode === "generate") {
293293
console.log("Head bucket error: " + err.toString());
294294
process.exit();
295295
}
296-
if (resp.statusCode !== 200) {
296+
if (resp.statusCode >= 300) {
297297
console.log("Head bucket status error: " + resp.statusCode);
298298
process.exit();
299299
}
@@ -303,7 +303,7 @@ if (mode === "generate") {
303303
console.log("Head bucket error: " + err.toString());
304304
process.exit();
305305
}
306-
if (resp.statusCode !== 200) {
306+
if (resp.statusCode >= 300) {
307307
console.log("Head bucket status error: " + resp.statusCode);
308308
process.exit();
309309
}

0 commit comments

Comments
 (0)