Merge pull request #9764 from daehyeok/remove_dup
Remove duplicated if statement in `(p *Profile) IsValid()`.pull/9723/head
commit
beb4077379
|
@ -35,9 +35,6 @@ var keywords = []string{"start", "stop", "status", "delete", "config", "open", "
|
||||||
|
|
||||||
// IsValid checks if the profile has the essential info needed for a profile
|
// IsValid checks if the profile has the essential info needed for a profile
|
||||||
func (p *Profile) IsValid() bool {
|
func (p *Profile) IsValid() bool {
|
||||||
if p.Config == nil {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if p.Config == nil {
|
if p.Config == nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue