Polish boolean checking in test cases and dashboard (#1664)

This commit is contained in:
Peine 2020-08-12 20:34:22 +08:00 committed by GitHub
parent b9b1e8a481
commit c5da3faad9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ public class RateLimiterControllerTest {
public void run() {
boolean pass = paceController.canPass(node, 1);
if (pass == true) {
if (pass) {
passcount.incrementAndGet();
} else {
blockcount.incrementAndGet();

View File

@ -108,7 +108,7 @@ public class DemoController {
try {
e1 = SphU.entry(name);
if (slow == true) {
if (slow) {
TimeUnit.MILLISECONDS.sleep(3000);
}