prettier: change to single quoting

This commit is contained in:
Torkel Ödegaard
2017-12-20 12:33:33 +01:00
parent 2a360c45a2
commit 85879a7014
304 changed files with 10558 additions and 10519 deletions

View File

@@ -1,7 +1,7 @@
import angular from "angular";
import _ from "lodash";
import $ from "jquery";
import coreModule from "../core_module";
import angular from 'angular';
import _ from 'lodash';
import $ from 'jquery';
import coreModule from '../core_module';
export class InspectCtrl {
/** @ngInject */
@@ -16,7 +16,7 @@ export class InspectCtrl {
}
if (_.isString(model.error.data)) {
$scope.response = $("<div>" + model.error.data + "</div>").text();
$scope.response = $('<div>' + model.error.data + '</div>').text();
} else if (model.error.data) {
if (model.error.data.response) {
$scope.response = $sanitize(model.error.data.response);
@@ -62,13 +62,13 @@ export class InspectCtrl {
}
getParametersFromQueryString(queryString) {
var result = [];
var parameters = queryString.split("&");
var parameters = queryString.split('&');
for (var i = 0; i < parameters.length; i++) {
var keyValue = parameters[i].split("=");
var keyValue = parameters[i].split('=');
if (keyValue[1].length > 0) {
result.push({
key: keyValue[0],
value: (<any>window).unescape(keyValue[1])
value: (<any>window).unescape(keyValue[1]),
});
}
}
@@ -76,4 +76,4 @@ export class InspectCtrl {
}
}
coreModule.controller("InspectCtrl", InspectCtrl);
coreModule.controller('InspectCtrl', InspectCtrl);