gui: Semicolons (#7597)

This commit is contained in:
overkill 2021-05-03 06:14:54 -04:00 committed by GitHub
parent f90870b99f
commit f09dcb98eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

View File

@ -42,7 +42,7 @@ angular.module('syncthing.core')
$scope.pendingFolders = {}; $scope.pendingFolders = {};
$scope.progress = {}; $scope.progress = {};
$scope.version = {}; $scope.version = {};
$scope.needed = {} $scope.needed = {};
$scope.neededFolder = ''; $scope.neededFolder = '';
$scope.failed = {}; $scope.failed = {};
$scope.localChanged = {}; $scope.localChanged = {};
@ -673,7 +673,7 @@ angular.module('syncthing.core')
console.log("refreshNeed", $scope.neededFolder, data); console.log("refreshNeed", $scope.neededFolder, data);
parseNeeded(data); parseNeeded(data);
}).error($scope.emitHTTPError); }).error($scope.emitHTTPError);
} };
function needAction(file) { function needAction(file) {
var fDelete = 4096; var fDelete = 4096;
@ -1010,7 +1010,7 @@ angular.module('syncthing.core')
if (days > 31) { if (days > 31) {
return '> 1 month'; return '> 1 month';
} }
res.push('' + days + 'd') res.push('' + days + 'd');
seconds = seconds % 86400; seconds = seconds % 86400;
} }
@ -1018,7 +1018,7 @@ angular.module('syncthing.core')
var hours = 0; var hours = 0;
if (seconds > 3600) { if (seconds > 3600) {
hours = Math.floor(seconds / 3600); hours = Math.floor(seconds / 3600);
res.push('' + hours + 'h') res.push('' + hours + 'h');
seconds = seconds % 3600; seconds = seconds % 3600;
} }
@ -1759,7 +1759,7 @@ angular.module('syncthing.core')
}; };
$scope.config.devices = deviceList($scope.devices); $scope.config.devices = deviceList($scope.devices);
$scope.saveConfig(); $scope.saveConfig();
} };
$scope.isAtleastOneDevicePausedStateSetTo = function (pause) { $scope.isAtleastOneDevicePausedStateSetTo = function (pause) {
for (var id in $scope.devices) { for (var id in $scope.devices) {
@ -1768,8 +1768,8 @@ angular.module('syncthing.core')
} }
} }
return false return false;
} };
$scope.errorList = function () { $scope.errorList = function () {
if (!$scope.errors) { if (!$scope.errors) {
@ -2779,7 +2779,7 @@ angular.module('syncthing.core')
var time = $filter('date')(status.when, "HH:mm:ss") var time = $filter('date')(status.when, "HH:mm:ss")
var err = status.error.replace(/.+: /, ''); var err = status.error.replace(/.+: /, '');
return err + " (" + time + ")"; return err + " (" + time + ")";
} };
$scope.setCrashReportingEnabled = function (enabled) { $scope.setCrashReportingEnabled = function (enabled) {
$scope.config.options.crashReportingEnabled = enabled; $scope.config.options.crashReportingEnabled = enabled;
@ -2791,7 +2791,7 @@ angular.module('syncthing.core')
(address.indexOf('/') == 0 || (address.indexOf('/') == 0 ||
address.indexOf('unix://') == 0 || address.indexOf('unix://') == 0 ||
address.indexOf('unixs://') == 0); address.indexOf('unixs://') == 0);
} };
}) })
.directive('shareTemplate', function () { .directive('shareTemplate', function () {
return { return {

View File

@ -95,7 +95,7 @@ namespace Device {
export function recalcCompletion(d: Device) { export function recalcCompletion(d: Device) {
if (!d || !d.completion || !d.folders) { if (!d || !d.completion || !d.folders) {
return return;
} }
var total = 0, needed = 0, deletes = 0, items = 0; var total = 0, needed = 0, deletes = 0, items = 0;
d.folders.forEach(folder => { d.folders.forEach(folder => {
@ -123,4 +123,4 @@ namespace Device {
} }
} }
} }
export default Device; export default Device;