addresses suggestions from pull-request
This commit is contained in:
parent
621178f558
commit
99f352228c
3 changed files with 10 additions and 6 deletions
|
@ -7,7 +7,10 @@ class AutoUpdater
|
|||
quitAndInstall: ->
|
||||
# TODO
|
||||
|
||||
setFeedUrl: (@updateUrl) ->
|
||||
setFeedUrl: (updateUrl) ->
|
||||
# set feed URL only when it hasn't been set before
|
||||
unless @updateUrl
|
||||
@updateUrl = updateUrl
|
||||
|
||||
checkForUpdates: ->
|
||||
throw new Error('Update URL is not set') unless @updateUrl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue