Skip to content

Commit 8ed5f3d

Browse files
authored
refactor: change if in else to else if (#4470)
1 parent c92ed11 commit 8ed5f3d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/configtest/src/index.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ class ConfigTestCommand {
2727
loadedConfigPaths.forEach((path) => configPaths.add(path));
2828
}
2929
});
30-
} else {
31-
if (config.path.get(config.options)) {
32-
const loadedConfigPaths = config.path.get(config.options);
30+
} else if (config.path.get(config.options)) {
31+
const loadedConfigPaths = config.path.get(config.options);
3332

34-
if (loadedConfigPaths) {
35-
loadedConfigPaths.forEach((path) => configPaths.add(path));
36-
}
33+
if (loadedConfigPaths) {
34+
loadedConfigPaths.forEach((path) => configPaths.add(path));
3735
}
3836
}
3937

0 commit comments

Comments
 (0)