Skip to content

Commit

Permalink
fix(mixin): Fixed error type mixed with YAML schema
Browse files Browse the repository at this point in the history
  • Loading branch information
CarmJos committed Feb 7, 2024
1 parent f233f84 commit a7cbc03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void apply(@NotNull YamlConfiguration source, @NotNull File target) throw
YamlConfiguration targetYml = parse(target);
if (targetYml == null) throw new Exception("File " + target.getAbsolutePath() + " is a yaml file!");

source.getKeys(true).forEach(s -> targetYml.set(s, source.getString(s)));
source.getKeys(true).forEach(s -> targetYml.set(s, source.get(s)));
targetYml.save(target);
}
}

0 comments on commit a7cbc03

Please sign in to comment.