Skip to content

Commit

Permalink
SQLGenerator: Remove unneeded null check
Browse files Browse the repository at this point in the history
This fixes a warning from Coverity:

CID 44606 (#1 of 1): Logically dead code (DEADCODE)

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Sep 21, 2016
1 parent 57b504e commit 24f279b
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,9 @@ protected static String getWhereClauseForTimeFrame(Date timeFrom,
+ dateToSqlTimestamp(timeFrom) + "','%Y%m%d%H%i%s')+0";
}

if (timeTo != null) {
return " date_format(" + timeLimiter
+ ",'%Y%m%d%H%i%s')+0<=date_format('"
+ dateToSqlTimestamp(timeTo) + "','%Y%m%d%H%i%s')+0";
}
return "";

return " date_format(" + timeLimiter
+ ",'%Y%m%d%H%i%s')+0<=date_format('"
+ dateToSqlTimestamp(timeTo) + "','%Y%m%d%H%i%s')+0";
}

/*****************************************************************
Expand Down

0 comments on commit 24f279b

Please sign in to comment.