From 5d9fd3cee7a1095d788c29939eb0f75bb568aaa4 Mon Sep 17 00:00:00 2001 From: Benoit Lavenier <benoit.lavenier@e-is.pro> Date: Tue, 24 Dec 2019 14:16:11 +0100 Subject: [PATCH] [fix] Fix JS Hint --- www/js/config.js | 4 ++-- www/js/controllers/join-controllers.js | 2 +- www/js/services/cache-services.js | 1 - www/js/services/wot-services.js | 2 +- www/plugins/es/js/services/http-services.js | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/www/js/config.js b/www/js/config.js index 7b80d11dc..25e598386 100644 --- a/www/js/config.js +++ b/www/js/config.js @@ -93,8 +93,8 @@ angular.module("cesium.config", []) "defaultCountry": "France" } }, - "version": "1.4.12", - "build": "2019-12-23T16:20:00.370Z", + "version": "1.4.13", + "build": "2019-12-24T13:13:44.631Z", "newIssueUrl": "https://git.duniter.org/clients/cesium-grp/cesium/issues/new" }) diff --git a/www/js/controllers/join-controllers.js b/www/js/controllers/join-controllers.js index f05651cad..0cfa56f3c 100644 --- a/www/js/controllers/join-controllers.js +++ b/www/js/controllers/join-controllers.js @@ -395,7 +395,7 @@ function JoinModalController($scope, $state, $interval, $q, $timeout, Device, UI var needSelf = angular.isUndefined(parameters.uid) || angular.isUndefined(parameters.blockUid) || (parameters.uid.toUpperCase() !== $scope.formData.pseudo.toUpperCase()); if (!needSelf) { - wallet.setSelf(parameters.uid, parameters.blockUid) + wallet.setSelf(parameters.uid, parameters.blockUid); } // Self promise (if need) diff --git a/www/js/services/cache-services.js b/www/js/services/cache-services.js index 3ea97aca8..08921d8bd 100644 --- a/www/js/services/cache-services.js +++ b/www/js/services/cache-services.js @@ -3,7 +3,6 @@ angular.module('cesium.cache.services', ['angular-cache']) .factory('csCache', function($http, $window, csSettings, CacheFactory) { 'ngInject'; - console.log('') var constants = { VERY_LONG: 54000000, /*15 days*/ diff --git a/www/js/services/wot-services.js b/www/js/services/wot-services.js index f3bc1e3e0..1ddfd428b 100644 --- a/www/js/services/wot-services.js +++ b/www/js/services/wot-services.js @@ -185,7 +185,7 @@ angular.module('cesium.wot.services', ['ngApi', 'cesium.bma.services', 'cesium.c console.debug("[wot] Requirements " + cacheKey + " found in cache"); // Update data with cache angular.merge(inputData, data); - return $q.when(data) + return $q.when(data); } data = {pubkey: inputData.pubkey, uid: inputData.uid}; diff --git a/www/plugins/es/js/services/http-services.js b/www/plugins/es/js/services/http-services.js index 7e619a0b4..bc1b07079 100644 --- a/www/plugins/es/js/services/http-services.js +++ b/www/plugins/es/js/services/http-services.js @@ -198,7 +198,7 @@ angular.module('cesium.es.http.services', ['ngResource', 'ngApi', 'cesium.servic request = csHttp.post(that.host, that.port, path, that.useSsl); that.cache.postByPath[path] = request; } - return request(obj, params) + return request(obj, params); }; return postRequest; }; -- GitLab