Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpalide committed Feb 3, 2022
1 parent 4c9e4f4 commit e7b6b9a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions pkg/util/updater/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"context"
"errors"
"fmt"
"os"
"os/exec"
"sync/atomic"

Expand Down Expand Up @@ -301,16 +300,3 @@ func latestVersion(channel Channel) (*Version, error) {
func currentVersion() (*Version, error) {
return VersionFromString(buildinfo.Version())
}

func detachProcess(args ...string) error {
bin, err := exec.LookPath(args[0])
if err != nil {
return err
}

var procAttr os.ProcAttr
procAttr.Files = []*os.File{os.Stdin,
os.Stdout, os.Stderr}
p, _ := os.StartProcess(bin, args, &procAttr) //nolint
return p.Release()
}

0 comments on commit e7b6b9a

Please sign in to comment.