Skip to content

Commit 7bfdb7d

Browse files
committed
refactor: set hasError to false by default
1 parent 23a127e commit 7bfdb7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ ErrorHandler.pool = []
273273

274274
class ProxyErrorHandler {
275275
constructor () {
276-
this.hasError = null
276+
this.hasError = false
277277
this.req = null
278278
this.proxyReq = null
279279
this.errorHandler = null
@@ -324,7 +324,7 @@ class ProxyErrorHandler {
324324
_release () {
325325
this._abort()
326326

327-
this.hasError = null
327+
this.hasError = false
328328
this.req = null
329329
this.proxyReq = null
330330
this.errorHandler = null

0 commit comments

Comments
 (0)