Skip to content

Commit

Permalink
Update mapquery.c
Browse files Browse the repository at this point in the history
Added extra braces to prettify
  • Loading branch information
computerchemist authored Nov 21, 2018
1 parent bf63d3d commit 978b0d6
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions mapquery.c
Original file line number Diff line number Diff line change
Expand Up @@ -986,8 +986,9 @@ int msQueryByFilter(mapObj *map)
return MS_SUCCESS;
}

if( lp->debug >= MS_DEBUGLEVEL_V )
if( lp->debug >= MS_DEBUGLEVEL_V ) {
msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByFilter()");
}
return MS_FAILURE;

query_error:
Expand Down Expand Up @@ -1285,8 +1286,9 @@ int msQueryByRect(mapObj *map)
return(MS_SUCCESS);
}

if( lp->debug >= MS_DEBUGLEVEL_V )
if( lp->debug >= MS_DEBUGLEVEL_V ) {
msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByRect()");
}
return(MS_FAILURE);
}

Expand Down Expand Up @@ -1603,8 +1605,9 @@ int msQueryByFeatures(mapObj *map)
if(GET_LAYER(map, l)->resultcache && GET_LAYER(map, l)->resultcache->numresults > 0) return(MS_SUCCESS);
}

if( lp->debug >= MS_DEBUGLEVEL_V )
if( lp->debug >= MS_DEBUGLEVEL_V ) {
msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByFeatures()");
}
return(MS_FAILURE);
}

Expand Down Expand Up @@ -1839,8 +1842,9 @@ int msQueryByPoint(mapObj *map)
return(MS_SUCCESS);
}

if( lp->debug >= MS_DEBUGLEVEL_V )
if( lp->debug >= MS_DEBUGLEVEL_V ) {
msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByPoint()");
}
return(MS_FAILURE);
}

Expand Down Expand Up @@ -2119,8 +2123,9 @@ int msQueryByShape(mapObj *map)
return(MS_SUCCESS);
}

if( lp->debug >= MS_DEBUGLEVEL_V )
if( lp->debug >= MS_DEBUGLEVEL_V ) {
msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByShape()");
}
return(MS_FAILURE);
}

Expand Down

0 comments on commit 978b0d6

Please sign in to comment.