Skip to content

Commit 1d5d76c

Browse files
revert small change to test
1 parent 76abdf4 commit 1d5d76c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/runnerUtils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ func ConfigFileExists(conf config.ConfigType, fileNames ...string) (string, bool
2121
generatedConfigFile := filepath.Join(conf.ToolsConfigDirectory(), fileName)
2222
existingConfigFile := filepath.Join(conf.RepositoryDirectory(), fileName)
2323

24-
if _, err := os.Stat(existingConfigFile); err == nil {
25-
return existingConfigFile, true
26-
} else if _, err := os.Stat(generatedConfigFile); err == nil {
24+
if _, err := os.Stat(generatedConfigFile); err == nil {
2725
return generatedConfigFile, true
26+
} else if _, err := os.Stat(existingConfigFile); err == nil {
27+
return existingConfigFile, true
2828
}
2929
}
3030

0 commit comments

Comments
 (0)