Skip to content

Commit

Permalink
fix: inline BLANK_CONFIG variable
Browse files Browse the repository at this point in the history
  • Loading branch information
timbru31 authored Dec 22, 2021
1 parent f2310dd commit 587c8df
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* @author timbru31
*/
public class CommentedConfiguration extends YamlConfiguration {
private static final String BLANK_FILE = "{}\n";
private final HashMap<String, String> comments;
private final File file;
private final DumperOptions yamlOptions = new DumperOptions();
Expand Down Expand Up @@ -58,7 +59,7 @@ public String saveToString() {

String dump = yaml.dump(getValues(false));

if (dump.equals(BLANK_CONFIG)) {
if (BLANK_FILE.equals(dump)) {
dump = "";
}

Expand Down

0 comments on commit 587c8df

Please sign in to comment.