Enable checkstyle for simple boolean expressions

This commit is contained in:
Evan Harris
2019-08-11 20:10:06 +00:00
committed by jvoisin
parent f738819625
commit 389db3f1b4
3 changed files with 4 additions and 2 deletions
@@ -240,7 +240,7 @@ public class DownloadController implements LastModified {
}
}
}
if (coverArtFile != null && coverArtFile.exists() && cover_embedded == false) {
if (coverArtFile != null && coverArtFile.exists() && !cover_embedded) {
zip(out, coverArtFile.getParentFile(), coverArtFile, status, range);
}
@@ -79,7 +79,7 @@ public class MetricsManager {
*/
public TimerBuilder condition(boolean ifTrue) {
if (metricsActivatedByConfiguration()) {
if (ifTrue == false) {
if (!ifTrue) {
return conditionFalseTimerBuilderSingleton;
}
return new TimerBuilder();