Skip to content

Commit d730e92

Browse files
committed
Revert "config: find yaml config if input no extension"
This reverts commit e098c0b.
1 parent 35d5944 commit d730e92

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cli/util/util.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -802,10 +802,6 @@ func GetYamlFileName(fileName string, mustExist bool) (string, error) {
802802
fileBaseName = strings.TrimSuffix(fileName, ".yaml")
803803
case ".yml":
804804
fileBaseName = strings.TrimSuffix(fileName, ".yml")
805-
case ".":
806-
fileBaseName = strings.TrimSuffix(fileName, ".")
807-
case "":
808-
fileBaseName = fileName
809805
default:
810806
return "", fmt.Errorf("provided file '%s' has no .yaml/.yml extension", fileName)
811807
}

0 commit comments

Comments
 (0)