Skip to content

Commit

Permalink
fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
gmeghnag committed Mar 4, 2024
1 parent bc732bc commit cf57361
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/use/use.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,12 @@ func findMustGatherIn(path string) (string, error) {
return findMustGatherIn(path + "/" + dirName)
}
if resourcesFolderFound {
fmt.Println("CASE1")
return retPath + "/", retErr
}
if timeStampFound && (numDirs > 1 || numDirs == 0) {
fmt.Println("CASE2")
return path, fmt.Errorf("expected one directory in path: \"%s\", found: %s", path, strconv.Itoa(numDirs))
}
if !timeStampFound && !resourcesFolderFound {
fmt.Println("CASE3")
// Case: "path" is an empty directory
return path, fmt.Errorf("wrong must-gather file composition for %v", path)
}
Expand Down

0 comments on commit cf57361

Please sign in to comment.