From 2db32a94e5d4b9f47046d0cca29526e5d88df7d0 Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Sun, 27 Oct 2013 02:53:10 +0200 Subject: [PATCH] Format fixes --- src/extension.js | 8 ++++---- src/prefs.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/extension.js b/src/extension.js index e32fc7c..d6c21ef 100644 --- a/src/extension.js +++ b/src/extension.js @@ -503,26 +503,26 @@ const WeatherMenuButton = new Lang.Class({ if (!this._settings) this.loadConfig(); let v = this._settings.get_int(WEATHER_REFRESH_INTERVAL_CURRENT); - return ((v >= 600)?v:600); + return ((v >= 600) ? v : 600); }, set _refresh_interval_current(v) { if (!this._settings) this.loadConfig(); - this._settings.set_int(WEATHER_REFRESH_INTERVAL_CURRENT, ((v >= 600)?v:600)); + this._settings.set_int(WEATHER_REFRESH_INTERVAL_CURRENT, ((v >= 600) ? v : 600)); }, get _refresh_interval_forecast() { if (!this._settings) this.loadConfig(); let v = this._settings.get_int(WEATHER_REFRESH_INTERVAL_FORECAST); - return ((v >= 600)?v:600); + return ((v >= 600) ? v : 600); }, set _refresh_interval_forecast(v) { if (!this._settings) this.loadConfig(); - this._settings.set_int(WEATHER_REFRESH_INTERVAL_FORECAST, ((v >= 600)?v:600)); + this._settings.set_int(WEATHER_REFRESH_INTERVAL_FORECAST, ((v >= 600) ? v : 600)); }, get _center_forecast() { diff --git a/src/prefs.js b/src/prefs.js index 2d8ba02..5d1030f 100644 --- a/src/prefs.js +++ b/src/prefs.js @@ -720,26 +720,26 @@ const WeatherPrefsWidget = new GObject.Class({ if (!this.Settings) this.loadConfig(); let v = this.Settings.get_int(WEATHER_REFRESH_INTERVAL_CURRENT); - return ((v >= 600)?v:600); + return ((v >= 600) ? v : 600); }, set refresh_interval_current(v) { if (!this.Settings) this.loadConfig(); - this.Settings.set_int(WEATHER_REFRESH_INTERVAL_CURRENT, ((v >= 600)?v:600)); + this.Settings.set_int(WEATHER_REFRESH_INTERVAL_CURRENT, ((v >= 600) ? v : 600)); }, get refresh_interval_forecast() { if (!this.Settings) this.loadConfig(); let v = this.Settings.get_int(WEATHER_REFRESH_INTERVAL_FORECAST); - return ((v >= 600)?v:600); + return ((v >= 600) ? v : 600); }, set refresh_interval_forecast(v) { if (!this.Settings) this.loadConfig(); - this.Settings.set_int(WEATHER_REFRESH_INTERVAL_FORECAST, ((v >= 600)?v:600)); + this.Settings.set_int(WEATHER_REFRESH_INTERVAL_FORECAST, ((v >= 600) ? v : 600)); }, get center_forecast() {