From fc549c94621920ed71995e529443bc0b108a7103 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Wed, 10 Jul 2024 22:28:48 +0200 Subject: [PATCH] cleanup imports --- internal/restorer/fileswriter.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/restorer/fileswriter.go b/internal/restorer/fileswriter.go index 962f66619..d6f78f2d7 100644 --- a/internal/restorer/fileswriter.go +++ b/internal/restorer/fileswriter.go @@ -2,7 +2,6 @@ package restorer import ( "fmt" - stdfs "io/fs" "os" "sync" "syscall" @@ -82,7 +81,7 @@ func createFile(path string, createSize int64, sparse bool, allowRecursiveDelete return nil, err } - var fi stdfs.FileInfo + var fi os.FileInfo if f != nil { // stat to check that we've opened a regular file fi, err = f.Stat() @@ -135,7 +134,7 @@ func createFile(path string, createSize int64, sparse bool, allowRecursiveDelete return ensureSize(f, fi, createSize, sparse) } -func ensureSize(f *os.File, fi stdfs.FileInfo, createSize int64, sparse bool) (*os.File, error) { +func ensureSize(f *os.File, fi os.FileInfo, createSize int64, sparse bool) (*os.File, error) { if sparse { err := truncateSparse(f, createSize) if err != nil {