Skip to content

Commit b0519c8

Browse files
committed
Fix linter warnings
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 779297d commit b0519c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/registry/snapshot/utils.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"context"
2323
"encoding/json"
2424
"fmt"
25-
"io/ioutil"
2625
"os"
2726
"path/filepath"
2827
"strings"
@@ -53,7 +52,7 @@ func (r *REST) GetSnapshotsFromBackned(repository *stash.Repository, snapshotIDs
5352
}
5453

5554
func (r *REST) getSnapshotsFromBackend(repository *stash.Repository, snapshotIDs []string) ([]repositories.Snapshot, error) {
56-
tempDir, err := ioutil.TempDir("", "stash")
55+
tempDir, err := os.MkdirTemp("", "stash")
5756
if err != nil {
5857
return nil, err
5958
}
@@ -160,7 +159,7 @@ func (r *REST) forgetSnapshotsFromLocalBackend(repository *stash.Repository, sna
160159
}
161160

162161
func (r *REST) forgetSnapshotsFromBackend(repository *stash.Repository, snapshotIDs []string) error {
163-
tempDir, err := ioutil.TempDir("", "stash")
162+
tempDir, err := os.MkdirTemp("", "stash")
164163
if err != nil {
165164
return err
166165
}

0 commit comments

Comments
 (0)