diff --git a/ktlint-rule-engine/src/main/kotlin/com/pinterest/ktlint/rule/engine/api/EditorConfigDefaults.kt b/ktlint-rule-engine/src/main/kotlin/com/pinterest/ktlint/rule/engine/api/EditorConfigDefaults.kt index cb6618179d..593193e634 100644 --- a/ktlint-rule-engine/src/main/kotlin/com/pinterest/ktlint/rule/engine/api/EditorConfigDefaults.kt +++ b/ktlint-rule-engine/src/main/kotlin/com/pinterest/ktlint/rule/engine/api/EditorConfigDefaults.kt @@ -36,13 +36,9 @@ public class EditorConfigDefaults( path: Path?, propertyTypes: Set>, ): EditorConfigDefaults = - if (path == null) { - EMPTY_EDITOR_CONFIG_DEFAULTS - } else { - EditorConfigDefaultsLoader( - EditorConfigLoaderEc4j(propertyTypes), - ).load(path) - } + EditorConfigDefaultsLoader( + EditorConfigLoaderEc4j(propertyTypes), + ).load(path) /** * Empty representation of [EditorConfigDefaults].