mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
17 lines
788 B
JavaScript
17 lines
788 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var InnerSubscriber_1 = require("../InnerSubscriber");
|
|
var subscribeTo_1 = require("./subscribeTo");
|
|
var Observable_1 = require("../Observable");
|
|
function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, innerSubscriber) {
|
|
if (innerSubscriber === void 0) { innerSubscriber = new InnerSubscriber_1.InnerSubscriber(outerSubscriber, outerValue, outerIndex); }
|
|
if (innerSubscriber.closed) {
|
|
return undefined;
|
|
}
|
|
if (result instanceof Observable_1.Observable) {
|
|
return result.subscribe(innerSubscriber);
|
|
}
|
|
return subscribeTo_1.subscribeTo(result)(innerSubscriber);
|
|
}
|
|
exports.subscribeToResult = subscribeToResult;
|
|
//# sourceMappingURL=subscribeToResult.js.map
|