浏览代码

cmd/strelaypoolsrv: Missing explicit dependency injection (#5669)

https://lgtm.com/rules/1505800326162/
Jonas Thelemann 6 年之前
父节点
当前提交
c6a179fa4d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      cmd/strelaypoolsrv/gui/index.html

+ 2 - 2
cmd/strelaypoolsrv/gui/index.html

@@ -193,9 +193,9 @@
   <script>
   angular.module('syncthing', [
   ])
-  .config(function($httpProvider) {
+  .config(['$httpProvider', function($httpProvider) {
     $httpProvider.defaults.timeout = 5000;
-  })
+  }])
   .filter('bytes', function() {
     return function(bytes, precision) {
       if (isNaN(parseFloat(bytes)) || !isFinite(bytes)) return '-';