mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-11 22:10:11 +01:00
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:
parent
639ead416e
commit
f5ae3ff476
25 changed files with 78 additions and 51 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue