Skip to content

Commit

Permalink
Convert aliased import to lowercase
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
  • Loading branch information
gabriel-samfira committed Feb 14, 2023
1 parent 4e7d36d commit 2305f0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions diskwriter_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package fsutil

import (
"fmt"
ioFS "io/fs"
iofs "io/fs"
"os"
"syscall"

Expand All @@ -24,7 +24,7 @@ func handleTarTypeBlockCharFifo(path string, stat *types.Stat) error {
return errors.New("Not implemented on windows")
}

func getFileHandle(path string, info ioFS.FileInfo) (syscall.Handle, error) {
func getFileHandle(path string, info iofs.FileInfo) (syscall.Handle, error) {
p, err := syscall.UTF16PtrFromString(path)
if err != nil {
return 0, errors.Wrap(err, "converting string to UTF-16")
Expand All @@ -42,7 +42,7 @@ func getFileHandle(path string, info ioFS.FileInfo) (syscall.Handle, error) {
return h, nil
}

func readlink(path string, info ioFS.FileInfo) ([]byte, error) {
func readlink(path string, info iofs.FileInfo) ([]byte, error) {
h, err := getFileHandle(path, info)
if err != nil {
return nil, errors.Wrap(err, "getting file handle")
Expand All @@ -58,7 +58,7 @@ func readlink(path string, info ioFS.FileInfo) ([]byte, error) {
return rdbbuf[:bytesReturned], nil
}

func getReparsePoint(path string, info ioFS.FileInfo) (*winio.ReparsePoint, error) {
func getReparsePoint(path string, info iofs.FileInfo) (*winio.ReparsePoint, error) {
target, err := readlink(path, info)
if err != nil {
return nil, errors.Wrap(err, "fetching link")
Expand Down

0 comments on commit 2305f0a

Please sign in to comment.