MCPcopy Create free account
hub / github.com/angular/dev-infra / onFinally

Method onFinally

github-actions/saucelabs/set-saucelabs-env.js:2097–2106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2095 return this[kHandler].onError(error);
2096 }
2097 onFinally() {
2098 if (this.errorHandler) {
2099 this.body.off("error", this.errorHandler);
2100 this.errorHandler = null;
2101 }
2102 if (this.endHandler) {
2103 this.body.off("end", this.endHandler);
2104 this.endHandler = null;
2105 }
2106 }
2107 addHeader(key, value) {
2108 processHeader(this, key, value);
2109 return this;

Callers 2

onCompleteMethod · 0.45
onErrorMethod · 0.45

Calls 1

offMethod · 0.45

Tested by

no test coverage detected