File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import (
22
22
"context"
23
23
"encoding/json"
24
24
"fmt"
25
- "io/ioutil"
26
25
"os"
27
26
"path/filepath"
28
27
"strings"
@@ -53,7 +52,7 @@ func (r *REST) GetSnapshotsFromBackned(repository *stash.Repository, snapshotIDs
53
52
}
54
53
55
54
func (r * REST ) getSnapshotsFromBackend (repository * stash.Repository , snapshotIDs []string ) ([]repositories.Snapshot , error ) {
56
- tempDir , err := ioutil . TempDir ("" , "stash" )
55
+ tempDir , err := os . MkdirTemp ("" , "stash" )
57
56
if err != nil {
58
57
return nil , err
59
58
}
@@ -160,7 +159,7 @@ func (r *REST) forgetSnapshotsFromLocalBackend(repository *stash.Repository, sna
160
159
}
161
160
162
161
func (r * REST ) forgetSnapshotsFromBackend (repository * stash.Repository , snapshotIDs []string ) error {
163
- tempDir , err := ioutil . TempDir ("" , "stash" )
162
+ tempDir , err := os . MkdirTemp ("" , "stash" )
164
163
if err != nil {
165
164
return err
166
165
}
You can’t perform that action at this time.
0 commit comments