Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
arielshaqed committed Mar 24, 2021
1 parent e0db727 commit 6bde004
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/lakectl/cmd/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/lakectl/cmd/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
}
Expand Down

0 comments on commit 6bde004

Please sign in to comment.