diff --git a/cmd/lakectl/cmd/fs.go b/cmd/lakectl/cmd/fs.go index 719f4e429ca..84964175d36 100644 --- a/cmd/lakectl/cmd/fs.go +++ b/cmd/lakectl/cmd/fs.go @@ -230,8 +230,8 @@ var fsRmCmd = &cobra.Command{ // fsCmd represents the fs command var fsCmd = &cobra.Command{ - Use: "fs", - Short: "view and manipulate objects", + Use: "fs", + Short: "view and manipulate objects", Hidden: true, } diff --git a/cmd/lakectl/cmd/input.go b/cmd/lakectl/cmd/input.go index 1c930018e46..93533123d65 100644 --- a/cmd/lakectl/cmd/input.go +++ b/cmd/lakectl/cmd/input.go @@ -71,7 +71,7 @@ func (d *deleteOnClose) Seek(offset int64, whence int) (int64, error) { func (d *deleteOnClose) Close() error { if err := os.Remove(d.Name()); err != nil { - d.File.Close() // Close failure is unimportant on read, but data definitely stays! + d.File.Close() // Close failure is unimportant on read, but data definitely stays! return fmt.Errorf("delete on close: %w", err) } return d.File.Close() @@ -96,7 +96,7 @@ func OpenByPath(path string) io.ReadSeekCloser { // Try to delete the file. This will fail on Windows, we shall try to // delete on close anyway. if os.Remove(temp.Name()) != nil { - return &deleteOnClose{temp} + return &deleteOnClose{temp} } return temp }