Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IUpdateService#isLatestVersion #53226

Merged
merged 3 commits into from Jun 28, 2018
Merged

IUpdateService#isLatestVersion #53226

merged 3 commits into from Jun 28, 2018

Conversation

jrieken
Copy link
Member

@jrieken jrieken commented Jun 28, 2018

No description provided.

@jrieken jrieken requested a review from joaomoreno June 28, 2018 10:09
@jrieken jrieken self-assigned this Jun 28, 2018
@jrieken jrieken added this to the June 2018 milestone Jun 28, 2018
Copy link
Member

@joaomoreno joaomoreno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

protected doQuitAndInstall(): void {
// noop
}

protected abstract setUpdateFeedUrl(quality: string): boolean;
protected abstract buildUpdateFeedUrl(quality: string): string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it return string | undefined?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check

try {
electron.autoUpdater.setFeedURL(createUpdateURL('darwin', quality));
electron.autoUpdater.setFeedURL(url);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not too happy that buildUpdateFeedUrl causes state to change in this service... but oh well

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not nice, but no bad side effects?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a second thought, it shouldn't behave different than before. The method is called as before, it just returns a string instead of a boolean... The name should maybe indicate the state-fullness but oh well

@jrieken jrieken merged commit bfe8ff1 into master Jun 28, 2018
@jrieken jrieken deleted the joh/isLatest branch June 28, 2018 10:35
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants