-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move condition up to save a level of indentation
Instead of: if (condition != null) { // indented large block code } else { log.info("Skipped"); } Inverse the condition check to move the logging code at the top and add an explicit continue. This saves a level of indentation on the code block: if (condition == null) { log.info("Skipped"); continue; } // large block code Also adjust the logging message while at it: vv - The project was not trigger by some reason. + The project was not trigger for some reason. ^^^
Showing
1 changed file
with
38 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters