MCPcopy
hub / github.com/di-sukharev/opencommit / onFinally

Method onFinally

out/cli.cjs:52703–52712  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52701 channels.error.publish({ request: this, error });
52702 }
52703 if (this.aborted) {
52704 return;
52705 }
52706 this.aborted = true;
52707 return this[kHandler].onError(error);
52708 }
52709 onFinally() {
52710 if (this.errorHandler) {
52711 this.body.off("error", this.errorHandler);
52712 this.errorHandler = null;
52713 }
52714 if (this.endHandler) {
52715 this.body.off("end", this.endHandler);

Callers 2

onCompleteMethod · 0.95
onErrorMethod · 0.95

Calls 1

offMethod · 0.45

Tested by

no test coverage detected