Skip to content

Commit

Permalink
HBASE-26916 Fix missing braces warnings in DefaultVisibilityExpressio…
Browse files Browse the repository at this point in the history
…nResolver (#4313)

Signed-off-by: Xiaolin Ha <haxiaolin@apache.org>
  • Loading branch information
Apache9 committed Apr 3, 2022
1 parent f51e579 commit c4ff355
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -98,7 +98,9 @@ public void init() {
} catch (IOException e) {
LOG.error("Error scanning 'labels' table", e);
} finally {
if (scanner != null) scanner.close();
if (scanner != null) {
scanner.close();
}
}
} catch (IOException ioe) {
LOG.error("Failed reading 'labels' tags", ioe);
Expand All @@ -111,12 +113,13 @@ public void init() {
LOG.warn("Error closing 'labels' table", ioe);
}
}
if (connection != null)
if (connection != null) {
try {
connection.close();
} catch (IOException ioe) {
LOG.warn("Failed close of temporary connection", ioe);
}
}
}
}

Expand Down

0 comments on commit c4ff355

Please sign in to comment.