From 90368d4ece1cc0136f117116924c8f90e6e72242 Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 26 Feb 2013 22:42:47 -0500 Subject: [PATCH] Minor cleanup --- src/main/java/com/gmail/nossr50/util/ItemChecks.java | 4 +--- src/main/java/com/gmail/nossr50/util/LogFilter.java | 7 +++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/ItemChecks.java b/src/main/java/com/gmail/nossr50/util/ItemChecks.java index 5f5c309ad..39c556dc5 100644 --- a/src/main/java/com/gmail/nossr50/util/ItemChecks.java +++ b/src/main/java/com/gmail/nossr50/util/ItemChecks.java @@ -592,9 +592,7 @@ public class ItemChecks { return true; case INK_SACK: - if (is.getData().getData() == DyeColor.BROWN.getDyeData()) { - return true; - } + return is.getData().getData() == DyeColor.BROWN.getDyeData(); default: return false; diff --git a/src/main/java/com/gmail/nossr50/util/LogFilter.java b/src/main/java/com/gmail/nossr50/util/LogFilter.java index 1371acc40..dc99931df 100644 --- a/src/main/java/com/gmail/nossr50/util/LogFilter.java +++ b/src/main/java/com/gmail/nossr50/util/LogFilter.java @@ -15,11 +15,10 @@ public class LogFilter implements Filter { @Override public boolean isLoggable(LogRecord record) { - if(record.getMessage().contains("[Debug]") && !debug) { + if (record.getMessage().contains("[Debug]") && !debug) { return false; } - else { - return true; - } + + return true; } }