1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

Fixed grunt style warnings.

This commit is contained in:
Kevan Ahlquist 2015-08-25 01:07:08 -05:00
parent 8a7f8f7c37
commit 6cb658a1ef
3 changed files with 5 additions and 5 deletions

View file

@ -50,7 +50,7 @@ angular.module('containersNetwork', ['ngVis'])
this.hasEdge = function (from, to) { this.hasEdge = function (from, to) {
return this.edges.getIds({ return this.edges.getIds({
filter: function (item) { filter: function (item) {
return item.from == from.Id && item.to == to.Id; return item.from === from.Id && item.to === to.Id;
} }
}).length > 0; }).length > 0;
}; };

View file

@ -9,8 +9,8 @@ angular.module('pullImage', [])
repo: '', repo: '',
fromImage: '', fromImage: '',
tag: 'latest' tag: 'latest'
} };
} };
$scope.init(); $scope.init();
@ -52,5 +52,5 @@ angular.module('pullImage', [])
$('#pull-modal').modal('show'); $('#pull-modal').modal('show');
$('#error-message').show(); $('#error-message').show();
}); });
} };
}]); }]);

View file

@ -46,7 +46,7 @@ angular.module('stats', [])
if (systemDelta > 0.0 && cpuDelta > 0.0) { if (systemDelta > 0.0 && cpuDelta > 0.0) {
cpuPercent = (cpuDelta / systemDelta) * curCpu.cpu_usage.percpu_usage.size() * 100.0; cpuPercent = (cpuDelta / systemDelta) * curCpu.cpu_usage.percpu_usage.size() * 100.0;
} }
return cpuPercent return cpuPercent;
}; };
function updateChart(data) { function updateChart(data) {