Skip to content

Commit

Permalink
fix: replace deprecated package
Browse files Browse the repository at this point in the history
  • Loading branch information
lgdd committed Feb 3, 2024
1 parent 8b5a4c7 commit b5f802c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lfr/pkg/util/procutil/procutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package procutil
import (
"errors"
"fmt"
"io/ioutil"
"io"
"os"
"path/filepath"
"strconv"
Expand Down Expand Up @@ -60,7 +60,7 @@ func GetCatalinaPid() (int, error) {

defer pidFile.Close()

pidBytes, err := ioutil.ReadAll(pidFile)
pidBytes, err := io.ReadAll(pidFile)

if err != nil {
return 0, err
Expand Down

0 comments on commit b5f802c

Please sign in to comment.