Skip to content

Commit f96911c

Browse files
committed
fixing travis CI warnings
1 parent 151a6a7 commit f96911c

4 files changed

Lines changed: 20 additions & 16 deletions

File tree

src/app/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ module.exports = function () {
172172

173173
// check if we have graph data
174174
var classCount =0;
175-
if (data.class!=undefined){
175+
if (data.class!==undefined){
176176
classCount=data.class.length;
177177
}
178178

src/app/js/loadingModule.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = function (graph) {
3737
d3.select("#loading-info").classed("hidden",true);
3838
} else {
3939
// check if it should be visible
40-
if (visibilityStatus==true){
40+
if (visibilityStatus===true){
4141
d3.select("#loading-info").classed("hidden",false);
4242
} else{
4343
d3.select("#loading-info").classed("hidden",true);
@@ -238,7 +238,7 @@ module.exports = function (graph) {
238238
}else{
239239
// involve the o2v conveter;
240240
ontologyMenu.append_message("Retrieving ontology from JSON URL " + filename);
241-
requestServerTimeStampForJSON_URL(ontologyMenu.callbackLoad_JSON_FromURL,["read?json="+filename,filename])
241+
requestServerTimeStampForJSON_URL(ontologyMenu.callbackLoad_JSON_FromURL,["read?json="+filename,filename]);
242242
}
243243
};
244244

@@ -273,7 +273,7 @@ module.exports = function (graph) {
273273
// involve the o2v conveter;
274274
var encoded=encodeURIComponent(filename);
275275
ontologyMenu.append_bulletPoint("Retrieving ontology from IRI: " + filename);
276-
requestServerTimeStampForIRI_Converte(ontologyMenu.callbackLoad_Ontology_FromIRI,["convert?iri="+encoded,filename])
276+
requestServerTimeStampForIRI_Converte(ontologyMenu.callbackLoad_Ontology_FromIRI,["convert?iri="+encoded,filename]);
277277
}
278278
};
279279

@@ -320,7 +320,7 @@ module.exports = function (graph) {
320320
//2] File Upload to OWL2VOWL Converter
321321
// 1) check if we can get a timeStamp;
322322
var parameterArray=[selectedFile,filename];
323-
requestServerTimeStamp(ontologyMenu.callbackLoadFromOntology,parameterArray)
323+
requestServerTimeStamp(ontologyMenu.callbackLoadFromOntology,parameterArray);
324324
}
325325
}
326326
};
@@ -405,7 +405,7 @@ module.exports = function (graph) {
405405
loadingWasSuccessFul=false;
406406

407407
var old=d3.select("#bulletPoint_container").node().innerHTML;
408-
if (old.indexOf("(with warnings)")!=-1 ) { missingImportsWarning=true;}
408+
if (old.indexOf("(with warnings)")!==-1 ) { missingImportsWarning=true;}
409409

410410
if (ontologyMenu.cachedOntology(ontoContent)) {
411411
ontologyMenu.append_bulletPoint("Loading already cached ontology: " + filename);

src/app/js/menu/ontologyMenu.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ module.exports = function (graph) {
247247

248248
ontologyMenu.setLoadingStatusInfo=function(message){
249249
// forward call
250-
setLoadingStatusInfo(message)
250+
setLoadingStatusInfo(message);
251251
};
252252

253253
function getLoadingStatusOnceCallBacked(callback,parameter){
@@ -291,7 +291,7 @@ module.exports = function (graph) {
291291

292292
function callbackUpdateLoadingMessage(msg){
293293
d3.xhr("loadingStatus", "application/text", function (error, request) {
294-
if (request!=undefined){
294+
if (request!==undefined){
295295
setLoadingStatusInfo(request.responseText+ "<br>"+msg);
296296
}else{
297297
append_message(msg);
@@ -329,7 +329,7 @@ module.exports = function (graph) {
329329

330330
function callbackFromIRI_Success(parameter){
331331
var local_conversionId=parameter[2];
332-
if (local_conversionId!=conversion_sessionId){
332+
if (local_conversionId!==conversion_sessionId){
333333
console.log("The conversion process for file:"+parameter[1]+" has been canceled!");
334334
ontologyMenu.conversionFinished(local_conversionId);
335335
return;
@@ -369,7 +369,7 @@ module.exports = function (graph) {
369369

370370
function callbackFromJSON_Success(parameter){
371371
var local_conversionId=parameter[2];
372-
if (local_conversionId!=conversion_sessionId){
372+
if (local_conversionId!==conversion_sessionId){
373373
console.log("The conversion process for file:"+parameter[1]+" has been canceled!");
374374
return;
375375
}
@@ -380,7 +380,7 @@ module.exports = function (graph) {
380380
var error=parameter[0];
381381
var request=parameter[1];
382382
var local_conversionId=parameter[2];
383-
if (local_conversionId!=conversion_sessionId){
383+
if (local_conversionId!==conversion_sessionId){
384384
console.log("This thread has been canceled!!");
385385
ontologyMenu.conversionFinished(local_conversionId);
386386
return;
@@ -403,7 +403,7 @@ module.exports = function (graph) {
403403
var error=parameter[0];
404404
var request=parameter[1];
405405
var local_conversionId=parameter[2];
406-
if (local_conversionId!=conversion_sessionId){
406+
if (local_conversionId!==conversion_sessionId){
407407
console.log("The loading process of JSON_URL has been canceled!");
408408
return;
409409
}
@@ -448,7 +448,7 @@ module.exports = function (graph) {
448448
var xhr=parameter[0];
449449
var filename=parameter[1];
450450
var local_threadId=parameter[2];
451-
if (local_threadId!=conversion_sessionId){
451+
if (local_threadId!==conversion_sessionId){
452452
console.log("The conversion process for file:"+filename+" has been canceled!");
453453
ontologyMenu.conversionFinished(local_threadId);
454454
return;
@@ -519,8 +519,12 @@ module.exports = function (graph) {
519519
}
520520

521521
ontologyMenu.showLoadingStatus=function (visible){
522-
if (visible===true){ displayLoadingIndicators(); }
523-
else {hideLoadingInformations()}
522+
if (visible===true){
523+
displayLoadingIndicators();
524+
}
525+
else {
526+
hideLoadingInformations();
527+
}
524528
};
525529

526530
function displayLoadingIndicators() {

src/webvowl/js/modules/statistics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ module.exports = function () {
105105
var result=false;
106106
if (property.attributes){
107107
attr=property.attributes();
108-
if (attr && attr.indexOf("datatype")!=-1){
108+
if (attr && attr.indexOf("datatype")!==-1){
109109
result=true;
110110
}
111111
}

0 commit comments

Comments
 (0)