Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniomika committed Nov 19, 2024
1 parent 82fa9e0 commit 0e9a6e7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ go 1.23.1

// replace github.com/picosh/pubsub => ../pubsub

replace github.com/picosh/utils => ../utils
// replace github.com/picosh/utils => ../utils

replace git.sr.ht/~delthas/senpai => github.com/picosh/senpai v0.0.0-20240503200611-af89e73973b0

Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ github.com/picosh/senpai v0.0.0-20240503200611-af89e73973b0 h1:pBRIbiCj7K6rGELij
github.com/picosh/senpai v0.0.0-20240503200611-af89e73973b0/go.mod h1:QaBDtybFC5gz7EG/9c3bgzuyW7W5W2rYLFZxWNuWk3Q=
github.com/picosh/tunkit v0.0.0-20240905223921-532404cef9d9 h1:g5oZmnDFr11HarA8IAXcc4o9PBlolSM59QIATCSoato=
github.com/picosh/tunkit v0.0.0-20240905223921-532404cef9d9/go.mod h1:UrDH/VCIc1wg/L6iY2zSYt4TiGw+25GsKSnkVkU40Dw=
github.com/picosh/utils v0.0.0-20241119183946-4b7dcdc032f2 h1:fZMsfZWm5P2SpT1GOUbun0juIu94rjsZWOZ+WYLBqBk=
github.com/picosh/utils v0.0.0-20241119183946-4b7dcdc032f2/go.mod h1:HogYEyJ43IGXrOa3D/kjM1pkzNAyh+pejRyv8Eo//pk=
github.com/pkg/sftp v1.13.7 h1:uv+I3nNJvlKZIQGSr8JVQLNHFU9YhhNpvC14Y6KgmSM=
github.com/pkg/sftp v1.13.7/go.mod h1:KMKI0t3T6hfA+lTR/ssZdunHo+uwq7ghoN09/FSu3DY=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
Expand Down
6 changes: 5 additions & 1 deletion pipe/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,11 @@ func WishMiddleware(handler *CliHandler) wish.Middleware {
if !*clean {
wish.Fatalln(sesh, "timeout reached, exiting ...")
} else {
sesh.Exit(1)
err = sesh.Exit(1)
if err != nil {
logger.Error("error exiting session", "err", err)
}

sesh.Close()
}
}
Expand Down

0 comments on commit 0e9a6e7

Please sign in to comment.