From f09dcb98eb4ccd1a198bfd4d0c81221ea1101210 Mon Sep 17 00:00:00 2001 From: overkill <22098433+0verk1ll@users.noreply.github.com> Date: Mon, 3 May 2021 06:14:54 -0400 Subject: [PATCH] gui: Semicolons (#7597) --- .../syncthing/core/syncthingController.js | 18 +++++++++--------- next-gen-gui/src/app/device.ts | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 98f9d1d95..ff7319c92 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -42,7 +42,7 @@ angular.module('syncthing.core') $scope.pendingFolders = {}; $scope.progress = {}; $scope.version = {}; - $scope.needed = {} + $scope.needed = {}; $scope.neededFolder = ''; $scope.failed = {}; $scope.localChanged = {}; @@ -673,7 +673,7 @@ angular.module('syncthing.core') console.log("refreshNeed", $scope.neededFolder, data); parseNeeded(data); }).error($scope.emitHTTPError); - } + }; function needAction(file) { var fDelete = 4096; @@ -1010,7 +1010,7 @@ angular.module('syncthing.core') if (days > 31) { return '> 1 month'; } - res.push('' + days + 'd') + res.push('' + days + 'd'); seconds = seconds % 86400; } @@ -1018,7 +1018,7 @@ angular.module('syncthing.core') var hours = 0; if (seconds > 3600) { hours = Math.floor(seconds / 3600); - res.push('' + hours + 'h') + res.push('' + hours + 'h'); seconds = seconds % 3600; } @@ -1759,7 +1759,7 @@ angular.module('syncthing.core') }; $scope.config.devices = deviceList($scope.devices); $scope.saveConfig(); - } + }; $scope.isAtleastOneDevicePausedStateSetTo = function (pause) { for (var id in $scope.devices) { @@ -1768,8 +1768,8 @@ angular.module('syncthing.core') } } - return false - } + return false; + }; $scope.errorList = function () { if (!$scope.errors) { @@ -2779,7 +2779,7 @@ angular.module('syncthing.core') var time = $filter('date')(status.when, "HH:mm:ss") var err = status.error.replace(/.+: /, ''); return err + " (" + time + ")"; - } + }; $scope.setCrashReportingEnabled = function (enabled) { $scope.config.options.crashReportingEnabled = enabled; @@ -2791,7 +2791,7 @@ angular.module('syncthing.core') (address.indexOf('/') == 0 || address.indexOf('unix://') == 0 || address.indexOf('unixs://') == 0); - } + }; }) .directive('shareTemplate', function () { return { diff --git a/next-gen-gui/src/app/device.ts b/next-gen-gui/src/app/device.ts index a7de61273..e631add1f 100644 --- a/next-gen-gui/src/app/device.ts +++ b/next-gen-gui/src/app/device.ts @@ -95,7 +95,7 @@ namespace Device { export function recalcCompletion(d: Device) { if (!d || !d.completion || !d.folders) { - return + return; } var total = 0, needed = 0, deletes = 0, items = 0; d.folders.forEach(folder => { @@ -123,4 +123,4 @@ namespace Device { } } } -export default Device; \ No newline at end of file +export default Device;