diff options
author | jiepeng <jiepengthegreat@126.com> | 2022-09-13 18:11:03 +0800 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-09-17 15:10:41 -0700 |
commit | b8900baf1ada72c24e58c487122c21e80858f52a (patch) | |
tree | 64c67fecd215d00e540a5d5c2030878b92cff981 /pkg/gui/gui.go | |
parent | c81333fefe2f1e27ab2fcb6a0dc37d82ca47c711 (diff) |
remove deprecated calls
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 5420ac9fa..f499ef367 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -2,7 +2,7 @@ package gui import ( "fmt" - "io/ioutil" + "io" "log" "os" "strings" @@ -656,8 +656,8 @@ func (gui *Gui) runSubprocess(cmdObj oscommands.ICmdObj) error { //nolint:unpara err := subprocess.Run() - subprocess.Stdout = ioutil.Discard - subprocess.Stderr = ioutil.Discard + subprocess.Stdout = io.Discard + subprocess.Stderr = io.Discard subprocess.Stdin = nil if gui.Config.GetUserConfig().PromptToReturnFromSubprocess { |