296}
297
298func (b *GardenBackend) isHermetic(gdnSpec garden.ContainerSpec) bool {
299 if len(gdnSpec.NetOut) != 0 {300 return false
301 }
302
Instead of conditionally checking for the value of a boolean expression and then
returning true
or false
, returning the expression itself simplifies the code
and improves readability.
if max > min {
return true
}
return false
return max > min