Skip to content

Commit

Permalink
Simplify boolean expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjiangling authored and ebyhr committed Aug 17, 2022
1 parent 4c6cec5 commit 3487c99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ public static int getMaxGroupingSets(Session session)

private static void validateHideInaccessibleColumns(boolean value, boolean defaultValue)
{
if (defaultValue == true && value == false) {
if (defaultValue && !value) {
throw new TrinoException(INVALID_SESSION_PROPERTY, format("%s cannot be disabled with session property when it was enabled with configuration", HIDE_INACCESSIBLE_COLUMNS));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public static Map<SchemaTableName, List<ColumnMetadata>> listTableColumns(Sessio
}
}

if (redirectionSucceeded == false) {
if (!redirectionSucceeded) {
return;
}

Expand Down

0 comments on commit 3487c99

Please sign in to comment.