mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Remove references to v2 commands, remove unused functions, and constants Signed-off-by: Parthvi Vala <pvala@redhat.com> * Dharmit's review Signed-off-by: Parthvi Vala <pvala@redhat.com>
16 lines
243 B
Go
16 lines
243 B
Go
package util
|
|
|
|
func GetIntOrDefault(ptr *int, defaultValue int) int {
|
|
if ptr == nil {
|
|
return defaultValue
|
|
}
|
|
return *ptr
|
|
}
|
|
|
|
func GetBoolOrDefault(ptr *bool, defaultValue bool) bool {
|
|
if ptr == nil {
|
|
return defaultValue
|
|
}
|
|
return *ptr
|
|
}
|