Fix code styling issue

This commit is contained in:
Alexander Söderberg 2020-07-14 20:46:52 +02:00
parent b989531a60
commit 64f5580edd
No known key found for this signature in database
GPG Key ID: C0207FF7EA146678

View File

@ -57,13 +57,14 @@ public final class PlotFlagPlaceholder extends PlotSpecificPlaceholder {
* @param inherit Define if it returns only the flag set on currentplot or also inherited flag * @param inherit Define if it returns only the flag set on currentplot or also inherited flag
* @return The value of flag serialized in string * @return The value of flag serialized in string
*/ */
private String getFlagValue(final Plot plot, final String flagName, final boolean inherit) { @NotNull private String getFlagValue(@NotNull final Plot plot, @NotNull final String flagName, final boolean inherit) {
if (flagName.isEmpty()) if (flagName.isEmpty()) {
return ""; return "";
}
final PlotFlag<?, ?> flag = GlobalFlagContainer.getInstance().getFlagFromString(flagName); final PlotFlag<?, ?> flag = GlobalFlagContainer.getInstance().getFlagFromString(flagName);
if (flag == null) if (flag == null) {
return ""; return "";
}
if (inherit) { if (inherit) {
return plot.getFlag(flag).toString(); return plot.getFlag(flag).toString();
} else { } else {