match ENUM style to others in project
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> (cherry picked from commit a871815) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
efc68c078e
commit
b95ad701af
4 changed files with 14 additions and 14 deletions
|
@ -39,18 +39,18 @@ export default React.createClass({
|
|||
console.log('checkForUpdate done, ', state);
|
||||
|
||||
// We will be replaced by NewVersionBar
|
||||
if (state === updateStateEnum.Ready) return;
|
||||
if (state === updateStateEnum.READY) return;
|
||||
|
||||
let done = true;
|
||||
let message;
|
||||
switch (state) {
|
||||
case updateStateEnum.Error:
|
||||
case updateStateEnum.ERROR:
|
||||
message = 'Error encountered when checking for an update';
|
||||
break;
|
||||
case updateStateEnum.NotAvailable:
|
||||
case updateStateEnum.NOTAVAILABLE:
|
||||
message = 'No update found';
|
||||
break;
|
||||
case updateStateEnum.Downloading:
|
||||
case updateStateEnum.DOWNLOADING:
|
||||
message = 'Update is being downloaded';
|
||||
done = false;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue