Merge branch '18947-githttpd'
[arvados.git] / apps / workbench / app / assets / javascripts / arvados_client.js
index b3f18ad65b21d0cd4223d088b79a68c888aa2c37..3fe8968eca7bb7ebd973c87d551fda118a158d14 100644 (file)
@@ -1,3 +1,7 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
 angular.
     module('Arvados', []).
     service('ArvadosClient', ArvadosClient);
@@ -11,7 +15,6 @@ function ArvadosClient(arvadosApiToken, arvadosDiscoveryUri) {
     return this;
     ////////////////////////////////
 
-    var that = this;
     var promiseDiscovery;
     var discoveryDoc;
 
@@ -22,7 +25,7 @@ function ArvadosClient(arvadosApiToken, arvadosDiscoveryUri) {
             var meth = discoveryDoc.resources[controller].methods[action];
             var data = $.extend({}, params, {_method: meth.httpMethod});
             $.each(data, function(k, v) {
-                if (typeof(v) == 'object') {
+                if (typeof(v) === 'object') {
                     data[k] = JSON.stringify(v);
                 }
             });