chore(go-lint): fix golint warning (#133)

Fixes several go lint cases reported by go report. 

Signed-off-by: wiwen <shenggxhz@gmail.com>
This commit is contained in:
wiwen 2020-06-09 17:17:23 +08:00 committed by GitHub
parent 639ead416e
commit f5ae3ff476
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 78 additions and 51 deletions

View file

@ -73,7 +73,7 @@ func (l predicateList) all(p *Pod) bool {
return true
}
// IsRunning retuns true if the pod is in running
// IsRunning returns true if the pod is in running
// state
func (p *Pod) IsRunning() bool {
return p.object.Status.Phase == "Running"
@ -87,7 +87,7 @@ func IsRunning() Predicate {
}
}
// IsCompleted retuns true if the pod is in completed
// IsCompleted returns true if the pod is in completed
// state
func (p *Pod) IsCompleted() bool {
return p.object.Status.Phase == "Succeeded"