mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
CHORE: Remove deprecated io/ioutil (#1699)
* Remove deprecated io/ioutil * fixup! * fixup!
This commit is contained in:
@@ -3,7 +3,6 @@ package spflib
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"os"
|
||||
"strings"
|
||||
@@ -137,5 +136,5 @@ func (c *cache) Save(filename string) error {
|
||||
}
|
||||
}
|
||||
dat, _ := json.MarshalIndent(outRecs, "", " ")
|
||||
return ioutil.WriteFile(filename, dat, 0644)
|
||||
return os.WriteFile(filename, dat, 0644)
|
||||
}
|
||||
|
Reference in New Issue
Block a user