stash/pkg/utils/boolean.go

7 lines
132 B
Go
Raw Permalink Normal View History

2019-02-11 06:39:21 +00:00
package utils
// IsTrue returns true if the bool pointer is not nil and true.
func IsTrue(b *bool) bool {
return b != nil && *b
}