Skip to content

Commit

Permalink
util/pkg/vfs: Fix swallowed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs authored and justinsb committed Sep 8, 2019
1 parent 2eeb322 commit 30f3320
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/pkg/vfs/sshfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ func (p *SSHPath) WriteFile(data io.ReadSeeker, acl ACL) error {
}

if err == nil {
session, err := p.client.NewSession()
var session *ssh.Session
session, err = p.client.NewSession()
if err != nil {
err = fmt.Errorf("error creating session for rename: %v", err)
} else {
Expand Down

0 comments on commit 30f3320

Please sign in to comment.