Skip to content

Commit

Permalink
Merge pull request #765 from hollyshi:patch-1
Browse files Browse the repository at this point in the history
Simplify 'if(available == true)' with 'if(available)'
  • Loading branch information
cuteason authored and chickenlj committed Oct 21, 2017
1 parent 88d64d5 commit 4b5818f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static void clear() {

public void append(LoggingEvent event) {
super.append(event);
if (available == true) {
if (available) {
Log temp = parseLog(event);
logList.add(temp);
}
Expand All @@ -56,4 +56,4 @@ private Log parseLog(LoggingEvent event) {
return log;
}

}
}

0 comments on commit 4b5818f

Please sign in to comment.