Skip to content

Commit

Permalink
remove unnecessary else block
Browse files Browse the repository at this point in the history
Signed-off-by: Stephanie <[email protected]>
  • Loading branch information
yangcao77 committed Feb 16, 2021
1 parent 0e056ab commit 1ce14ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/devfile/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func ValidateDevfileData(data devfileData.DevfileData) error {

if len(errstrings) > 0 {
return fmt.Errorf(strings.Join(errstrings, "\n"))
} else {
return nil
}

return nil
}

0 comments on commit 1ce14ae

Please sign in to comment.