-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Updater): Add NullUpdateProvider for good measure (master branch)
- Loading branch information
1 parent
8a33562
commit 392ffc3
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
backend/lib/updater/lib/update_provider/NullUpdateProvider.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const NoCloudUpdateProvider = require("./NoCloudUpdateProvider"); | ||
|
||
class NullUpdateProvider extends NoCloudUpdateProvider { | ||
/** | ||
* @return {Promise<Array<import("./NoCloudRelease")>>} | ||
*/ | ||
async fetchReleases() { | ||
return []; | ||
} | ||
|
||
/** | ||
* @param {import("./NoCloudRelease")} release | ||
* @return {Promise<Array<import("./NoCloudReleaseBinary")>>} | ||
*/ | ||
async fetchBinariesForRelease(release) { | ||
return []; | ||
} | ||
} | ||
|
||
module.exports = NullUpdateProvider; |