Skip to content

Commit

Permalink
[feature/nro-profile] Miscellaneous syntax fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhrr committed Feb 20, 2024
1 parent 9da6539 commit 32358d8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/apnic/rdap/conformance/Application.java
Expand Up @@ -619,7 +619,7 @@ public static void main(final String[] args) throws Exception {

executorService.shutdown();

if(contexts.hasFailedResult()) {
if (contexts.hasFailedResult()) {
System.exit(EX_FAILURE);
}
}
Expand Down
8 changes: 3 additions & 5 deletions src/main/java/net/apnic/rdap/conformance/Context.java
Expand Up @@ -141,11 +141,9 @@ public Specification getSpecification() {
*
* @return True of false if this context has a failed result
*/
public boolean hasFailedResult()
{
for(Result res: results)
{
if(res.isStatus(Result.Status.Failure)) {
public boolean hasFailedResult() {
for (Result res: results) {
if (res.isStatus(Result.Status.Failure)) {
return true;
}
}
Expand Down
8 changes: 3 additions & 5 deletions src/main/java/net/apnic/rdap/conformance/ContextList.java
Expand Up @@ -20,11 +20,9 @@ public class ContextList
*
* @return boolean if at least one Context has a failed result.
*/
public boolean hasFailedResult()
{
for(Context context : this)
{
if(context.hasFailedResult()) {
public boolean hasFailedResult() {
for (Context context : this) {
if (context.hasFailedResult()) {
return true;
}
}
Expand Down

0 comments on commit 32358d8

Please sign in to comment.