fix: check key path condition bug

This commit is contained in:
moond4rk
2020-12-29 16:24:54 +08:00
committed by ᴍᴏᴏɴD4ʀᴋ
parent 9a96817415
commit e3883be08b
+3 -3
View File
@@ -283,9 +283,9 @@ func PickCustomBrowser(browserName, cusProfile, cusKey string) ([]Browser, error
return nil, err
}
}
}
if err := checkKeyPath(cusKey); err != nil {
return nil, err
if err := checkKeyPath(cusKey); err != nil {
return nil, err
}
}
b, err := choice.New(cusProfile, cusKey, choice.Name, choice.Storage)
browsers = append(browsers, b)