Remove duplicated if statement in `(p *Profile) IsValid()`.
parent
9fc4b2c11d
commit
2cd34b7c36
|
@ -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