Skip to content

Commit

Permalink
Update pkg/util/util.go
Browse files Browse the repository at this point in the history
Co-authored-by: roi-codefresh <[email protected]>
  • Loading branch information
danielm-codefresh and roi-codefresh authored Feb 20, 2023
1 parent 156090c commit 5da90b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func StealFlags(cmd *cobra.Command, exceptFor []string) (*pflag.FlagSet, error)
func CleanSliceWhiteSpaces(slc []string) []string {
var res []string
for i := range slc {
if slc[i] != "" {
if strings.TrimSpace(slc[i]) != "" {
res = append(res, slc[i])
}
}
Expand Down

0 comments on commit 5da90b0

Please sign in to comment.