Skip to content

Commit

Permalink
fix: fix a lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Jul 16, 2024
1 parent c04056f commit c90fb18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/installpackage/aqua.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,8 @@ func (is *Installer) copyAquaOnWindows(exePath string) error {
return fmt.Errorf("rename aqua.exe to update: %w", err)
}
}
return is.linker.Hardlink(exePath, dest)
if err := is.linker.Hardlink(exePath, dest); err != nil {
return fmt.Errorf("create a hard link to aqua.exe: %w", err)
}
return nil
}

0 comments on commit c90fb18

Please sign in to comment.