code style

This commit is contained in:
Feross Aboukhadijeh
2016-05-13 12:23:59 -07:00
parent a2aa5e4271
commit 6589e134b3
2 changed files with 8 additions and 4 deletions

View File

@@ -216,7 +216,9 @@ function setAspectRatio (aspectRatio) {
// Display string in dock badging area (OS X)
function setBadge (text) {
log('setBadge %s', text)
if (app.dock) app.dock.setBadge(String(text))
if (app.dock) {
app.dock.setBadge(String(text))
}
}
// Show progress bar. Valid range is [0, 1]. Remove when < 0; indeterminate when > 1.