Skip to content

Commit 89d6745

Browse files
committed
revert useHydra && useServices
1 parent 199c8c4 commit 89d6745

1 file changed

Lines changed: 1 addition & 20 deletions

File tree

index.js

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -78,26 +78,7 @@ module.exports = {
7878

7979
this.log('Uploading `' + filePath + '`', { verbose: true });
8080

81-
if (useHydra && useServices) {
82-
return this._readFileContents(filePath)
83-
.then((fileContents) => {
84-
return Promise.all([
85-
restClient.uploadReleaseToHydra(keyPrefix, revisionKey, appName, fileContents),
86-
restClient.updateReleaseToServices(keyPrefix, revisionKey, appName, fileContents),
87-
]);
88-
})
89-
.then(([hydraKey, servicesKey]) => {
90-
// both keys _should_ be the same
91-
if (hydraKey !== servicesKey) {
92-
this._uploadSuccessMessage(hydraKey);
93-
this._uploadSuccessMessage(servicesKey);
94-
} else {
95-
this._uploadSuccessMessage(servicesKey);
96-
}
97-
return { key: servicesKey };
98-
})
99-
.catch(this._errorMessage.bind(this));
100-
} else if (useHydra) {
81+
if (useHydra) {
10182
return this._readFileContents(filePath)
10283
.then(restClient.uploadReleaseToHydra.bind(restClient, keyPrefix, revisionKey, appName))
10384
.then(this._uploadSuccessMessage.bind(this))

0 commit comments

Comments
 (0)