Skip to content

Commit

Permalink
Revert "config: find yaml config if input no extension"
Browse files Browse the repository at this point in the history
This reverts commit e098c0b.
  • Loading branch information
oleg-jukovec committed Nov 28, 2024
1 parent 35d5944 commit d730e92
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cli/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -802,10 +802,6 @@ func GetYamlFileName(fileName string, mustExist bool) (string, error) {
fileBaseName = strings.TrimSuffix(fileName, ".yaml")
case ".yml":
fileBaseName = strings.TrimSuffix(fileName, ".yml")
case ".":
fileBaseName = strings.TrimSuffix(fileName, ".")
case "":
fileBaseName = fileName
default:
return "", fmt.Errorf("provided file '%s' has no .yaml/.yml extension", fileName)
}
Expand Down

0 comments on commit d730e92

Please sign in to comment.