Skip to content

Commit

Permalink
Remove useless code
Browse files Browse the repository at this point in the history
Signed-off-by: sakeven <[email protected]>
  • Loading branch information
sakeven committed Aug 28, 2017
1 parent 877ee91 commit 543eaf0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/kubectl/cmd/util/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,6 @@ func CheckErr(err error) {
checkErr(err, fatalErrHandler)
}

// checkErrWithPrefix works like CheckErr, but adds a caller-defined prefix to non-nil errors
func checkErrWithPrefix(prefix string, err error) {
checkErr(err, fatalErrHandler)
}

// checkErr formats a given error as a string and calls the passed handleErr
// func with that string and an kubectl exit code.
func checkErr(err error, handleErr func(string, int)) {
Expand Down Expand Up @@ -595,7 +590,7 @@ func ChangeResourcePatch(info *resource.Info, changeCause string) ([]byte, types
}
}

// containsChangeCause checks if input resource info contains change-cause annotation.
// ContainsChangeCause checks if input resource info contains change-cause annotation.
func ContainsChangeCause(info *resource.Info) bool {
annotations, err := info.Mapping.MetadataAccessor.Annotations(info.Object)
if err != nil {
Expand Down

0 comments on commit 543eaf0

Please sign in to comment.