Skip to content

Commit

Permalink
Use braces around conditional
Browse files Browse the repository at this point in the history
Another checkstyle warning
  • Loading branch information
MarkEWaite committed Oct 10, 2019
1 parent e7d8293 commit d5ca460
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,10 @@ String readRedhatReleaseIdentifier(@NonNull String field) {
if (field.equals("ID")) {
value = line.substring(0, line.indexOf(RELEASE)).trim();
}
if (field.equals("VERSION_ID"))
if (field.equals("VERSION_ID")) {
value =
line.substring(line.indexOf(RELEASE) + RELEASE.length(), line.indexOf("(")).trim();
}
}
}
} catch (IOException notFound) {
Expand Down

0 comments on commit d5ca460

Please sign in to comment.