Skip to content

Commit

Permalink
Deprecate io/ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
uhthomas committed Feb 18, 2021
1 parent a78ec80 commit 4a05e5c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions filesystem/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"

Expand All @@ -27,7 +26,7 @@ func New(dir string) (*FileSystem, error) {
// Create writes r to a temporary file, and links it to a permanent location
// upon success.
func (fs FileSystem) Create(_ context.Context, name string, r io.Reader) error {
f, err := ioutil.TempFile(fs.tmp, "kipp")
f, err := os.CreateTemp(fs.tmp, "kipp")
if err != nil {
return fmt.Errorf("temp file: %w", err)
}
Expand Down

0 comments on commit 4a05e5c

Please sign in to comment.