Skip to content

Commit

Permalink
Remove redundant if condition
Browse files Browse the repository at this point in the history
Noticed-By: @Cooldude2606
  • Loading branch information
Hornwitser committed Apr 28, 2024
1 parent 464d588 commit e341adf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/lib/src/data/ModPack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,6 @@ export default class ModPack {
value = typeof value === "object" ? prototype.default_value : String(value ?? "");
}
if (type === "color-setting") {
if (typeof value !== "object") {
value = prototype.default_value;
}
value = libLuaTools.normalizeColor(value as object);
}
this.settings[settingType].set(prototype.name, { value });
Expand Down

0 comments on commit e341adf

Please sign in to comment.