diff options
Diffstat (limited to 'commands/webui.go')
-rw-r--r-- | commands/webui.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/webui.go b/commands/webui.go index 5fe66aa7..a2a01645 100644 --- a/commands/webui.go +++ b/commands/webui.go @@ -2,6 +2,7 @@ package commands import ( "context" + "errors" "fmt" "io" "log" @@ -162,7 +163,7 @@ func runWebUI(env *execenv.Env, opts webUIOptions) error { env.Out.Println("Press Ctrl+c to quit") configOpen, err := env.Repo.AnyConfig().ReadBool(webUIOpenConfigKey) - if err == repository.ErrNoConfigEntry { + if errors.Is(err, repository.ErrNoConfigEntry) { // default to true configOpen = true } else if err != nil { |