From 412089948c80533d269130f31dfc85853ca9a5b4 Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Sun, 20 Nov 2016 16:44:33 -0600 Subject: [PATCH] Do not return error when session is locked and database url is blank --- pkg/command/options.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/command/options.go b/pkg/command/options.go index da87fbb..7ae0bf2 100644 --- a/pkg/command/options.go +++ b/pkg/command/options.go @@ -1,7 +1,6 @@ package command import ( - "fmt" "os" "strings" @@ -51,11 +50,6 @@ func ParseOptions() error { Opts.Sessions = false } - // When session is locked, connection UI is not displayed. - if Opts.LockSession && Opts.Url == "" { - return fmt.Errorf("Please provide connection url") - } - if Opts.Prefix != "" && !strings.Contains(Opts.Prefix, "/") { Opts.Prefix = Opts.Prefix + "/" }