mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-08-21 06:36:06 +00:00
Enable more linters, and remove mal-functioned milestoned issue action.
Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
This commit is contained in:
@@ -18,12 +18,12 @@ package boolptr
|
||||
|
||||
// IsSetToTrue returns true if and only if the bool pointer is non-nil and set to true.
|
||||
func IsSetToTrue(b *bool) bool {
|
||||
return b != nil && *b == true
|
||||
return b != nil && *b
|
||||
}
|
||||
|
||||
// IsSetToFalse returns true if and only if the bool pointer is non-nil and set to false.
|
||||
func IsSetToFalse(b *bool) bool {
|
||||
return b != nil && *b == false
|
||||
return b != nil && !*b
|
||||
}
|
||||
|
||||
// True returns a *bool whose underlying value is true.
|
||||
|
||||
Reference in New Issue
Block a user