Minor syntax change for Codacy

This commit is contained in:
Owen Stephens 2017-10-27 11:47:59 +01:00
parent e4bdca9c95
commit f5e4420af9
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ Refine.reinitializeProjectData = function(f, fError) {
$.getJSON( $.getJSON(
"command/core/get-project-metadata?" + $.param({ project: theProject.id }), null, "command/core/get-project-metadata?" + $.param({ project: theProject.id }), null,
function(data) { function(data) {
if (data.status == 'error') { if (data.status == "error") {
alert(data.message); alert(data.message);
if (fError) { if (fError) {
fError(); fError();

View File

@ -247,7 +247,7 @@ BrowsingEngine.prototype.update = function(onDone) {
"command/core/compute-facets?" + $.param({ project: theProject.id }), "command/core/compute-facets?" + $.param({ project: theProject.id }),
{ engine: JSON.stringify(this.getJSON(true)) }, { engine: JSON.stringify(this.getJSON(true)) },
function(data) { function(data) {
if(data.code === 'error') { if(data.code === "error") {
var clearErr = $('#err-text').remove(); var clearErr = $('#err-text').remove();
var err = $('<div id="err-text">') var err = $('<div id="err-text">')
.text(data.message) .text(data.message)