Skip to content

Commit

Permalink
Fixed a duplicate parentheses for optional props
Browse files Browse the repository at this point in the history
  • Loading branch information
redfarg committed May 19, 2014
1 parent da97c07 commit 224a611
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/js/services/translatorToSPARQL.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ angular.module('GSB.services.translatorToSPARQL', ['GSB.config'])
var SPARQL = "";

if (eigenschaft.optional) {
$log.info("OPTIONAL PROP - " + eigenschaft.alias);
SPARQL += "OPTIONAL { \n";
}

Expand All @@ -271,9 +270,7 @@ angular.module('GSB.services.translatorToSPARQL', ['GSB.config'])
}
} else {
SPARQL += eigenschaft.alias + " .\n";
if (eigenschaft.optional) {
SPARQL += "}\n";
}

if (eigenschaft.view) {
shownValues[shownValues.length] = eigenschaft.alias;
}
Expand Down

0 comments on commit 224a611

Please sign in to comment.