fix: check key path condition bug

pull/83/head
moond4rk 4 years ago committed by ᴍᴏᴏɴD4ʀᴋ
parent 9a96817415
commit e3883be08b
  1. 2
      core/browser.go

@ -283,10 +283,10 @@ func PickCustomBrowser(browserName, cusProfile, cusKey string) ([]Browser, error
return nil, err return nil, err
} }
} }
}
if err := checkKeyPath(cusKey); err != nil { if err := checkKeyPath(cusKey); err != nil {
return nil, err return nil, err
} }
}
b, err := choice.New(cusProfile, cusKey, choice.Name, choice.Storage) b, err := choice.New(cusProfile, cusKey, choice.Name, choice.Storage)
browsers = append(browsers, b) browsers = append(browsers, b)
return browsers, err return browsers, err

Loading…
Cancel
Save