Skip to content

Commit

Permalink
Replace use of deprecated io package with os
Browse files Browse the repository at this point in the history
Issue #315
  • Loading branch information
MatthewJohn committed May 27, 2024
1 parent 932168e commit 4a1a0be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/recent.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package lib

import (
"encoding/json"
"io/ioutil"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -76,7 +75,7 @@ func getRecentFileData(installPath string) RecentFile {

fileExist := CheckFileExist(recentFilePath)
if fileExist {
content, err := ioutil.ReadFile(recentFilePath)
content, err := os.ReadFile(recentFilePath)
if err != nil {
logger.Warnf("Error opening recent versions file (%q): %v. Ignoring", recentFilePath, err)
return outputRecent
Expand Down

0 comments on commit 4a1a0be

Please sign in to comment.