Skip to content

Commit

Permalink
fixed check style error
Browse files Browse the repository at this point in the history
  • Loading branch information
peng-yongsheng committed Sep 3, 2017
1 parent a9ff88f commit 2178a73
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -21,11 +21,7 @@ public Window() {
}

public boolean trySwitchPointer() {
if (windowSwitch.incrementAndGet() == 1 && !getLast().isReading()) {
return true;
} else {
return false;
}
return windowSwitch.incrementAndGet() == 1 && !getLast().isReading();
}

public void trySwitchPointerFinally() {
Expand Down

0 comments on commit 2178a73

Please sign in to comment.