Skip to content

Commit 4b5818f

Browse files
cuteasonchickenlj
authored andcommitted
Merge pull request #765 from hollyshi:patch-1
Simplify 'if(available == true)' with 'if(available)'
1 parent 88d64d5 commit 4b5818f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dubbo-common/src/main/java/com/alibaba/dubbo/common/utils/DubboAppender.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static void clear() {
4141

4242
public void append(LoggingEvent event) {
4343
super.append(event);
44-
if (available == true) {
44+
if (available) {
4545
Log temp = parseLog(event);
4646
logList.add(temp);
4747
}
@@ -56,4 +56,4 @@ private Log parseLog(LoggingEvent event) {
5656
return log;
5757
}
5858

59-
}
59+
}

0 commit comments

Comments
 (0)