mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 15:30:41 +09:00
Remove redundant if condition
Noticed-By: @Cooldude2606
This commit is contained in:
1 parent
464d588b5e
commit
e341adfb29
1 file changed
-3
@@ -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 });
|
||||
|
||||
Reference in new issue
Block a user