From 954983fd9fee03610d3524de363131196e3b8ec4 Mon Sep 17 00:00:00 2001 From: moond4rk Date: Tue, 29 Dec 2020 16:24:54 +0800 Subject: [PATCH] fix check key path condition bug --- core/browser.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/browser.go b/core/browser.go index d60ab30..656fb94 100644 --- a/core/browser.go +++ b/core/browser.go @@ -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)