mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
20 lines
649 B
JavaScript
20 lines
649 B
JavaScript
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
var Subscriber_1 = require("../Subscriber");
|
||
|
function canReportError(observer) {
|
||
|
while (observer) {
|
||
|
var _a = observer, closed_1 = _a.closed, destination = _a.destination, isStopped = _a.isStopped;
|
||
|
if (closed_1 || isStopped) {
|
||
|
return false;
|
||
|
}
|
||
|
else if (destination && destination instanceof Subscriber_1.Subscriber) {
|
||
|
observer = destination;
|
||
|
}
|
||
|
else {
|
||
|
observer = null;
|
||
|
}
|
||
|
}
|
||
|
return true;
|
||
|
}
|
||
|
exports.canReportError = canReportError;
|
||
|
//# sourceMappingURL=canReportError.js.map
|