@@ -64,7 +64,7 @@ function sparql (filename, targetURI, text, callback) {
6464
6565 try {
6666 $rdf . parse ( dataIn , targetKB , targetURI , targetContentType )
67- } catch ( e ) {
67+ } catch ( e ) {
6868 debug ( 'Patch: Target ' + targetContentType + ' file syntax error:' + e )
6969 return callback ( error ( 500 , 'Patch: Target ' + targetContentType + ' file syntax error:' + e ) )
7070 }
@@ -79,8 +79,7 @@ function sparql (filename, targetURI, text, callback) {
7979 for ( v in bindings ) {
8080 if ( bindings . hasOwnProperty ( v ) ) {
8181 x = bindings [ v ]
82- b [ v ] = x . uri ? { 'type' : 'uri' , 'value' : x . uri } :
83- { 'type' : 'literal' , 'value' : x . value }
82+ b [ v ] = x . uri ? { 'type' : 'uri' , 'value' : x . uri } : { 'type' : 'literal' , 'value' : x . value }
8483 if ( x . lang ) {
8584 b [ v ] [ 'xml:lang' ] = x . lang
8685 }
@@ -123,7 +122,7 @@ function sparqlUpdate (filename, targetURI, text, callback) {
123122 try {
124123 // Must parse relative to document's base address but patch doc should get diff URI
125124 patchObject = $rdf . sparqlUpdateParser ( text , patchKB , patchURI )
126- } catch ( e ) {
125+ } catch ( e ) {
127126 return callback ( error ( 400 , 'Patch format syntax error:\n' + e + '\n' ) )
128127 }
129128 debug ( 'PATCH -- reading target file ...' )
@@ -137,7 +136,7 @@ function sparqlUpdate (filename, targetURI, text, callback) {
137136
138137 try {
139138 $rdf . parse ( dataIn , targetKB , targetURI , targetContentType )
140- } catch ( e ) {
139+ } catch ( e ) {
141140 debug ( 'Patch: Target ' + targetContentType + ' file syntax error:' + e )
142141 return callback ( error ( 500 , 'Patch: Target ' + targetContentType + ' file syntax error:' + e ) )
143142 }
0 commit comments