Fix panics when sshinfo is not set on bookmarks
This commit is contained in:
parent
f73f812cf1
commit
58ae69de0b
@ -25,7 +25,7 @@ type Bookmark struct {
|
||||
}
|
||||
|
||||
func (b Bookmark) SSHInfoIsEmpty() bool {
|
||||
return b.Ssh.User == "" && b.Ssh.Host == "" && b.Ssh.Port == ""
|
||||
return b.Ssh == nil || b.Ssh.User == "" && b.Ssh.Host == "" && b.Ssh.Port == ""
|
||||
}
|
||||
|
||||
func (b Bookmark) ConvertToOptions() command.Options {
|
||||
|
Loading…
x
Reference in New Issue
Block a user