Skip to content

Commit

Permalink
Idiomatic
Browse files Browse the repository at this point in the history
  • Loading branch information
sourishkrout committed Feb 19, 2025
1 parent b32087d commit 022cd58
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions internal/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,10 @@ func inRawMode(cb func() error) error {
}

current := console.Current()
defer current.Reset()
_ = current.SetRaw()

err := cb()

_ = current.Reset()

return err
return cb()
}

const fileNameSeparator = "/"
Expand Down

0 comments on commit 022cd58

Please sign in to comment.