Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: George L. Yermulnik <yz@yz.kiev.ua>
  • Loading branch information
MatrixCrawler and yermulnik committed Mar 31, 2024
1 parent 3751b72 commit 74bbd31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/symlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ func CreateSymlink(cwd string, dir string) {
if runtime.GOOS == "windows" {
r, err := os.Open(cwd)
if err != nil {
log.Fatalf(`Unable to open source binary: %s.`, cwd)
log.Fatalf("Unable to open source binary: %s", cwd)
os.Exit(1)
}
defer r.Close()

w, err := os.Create(dir + ".exe")
if err != nil {
log.Fatalf(`Could not create target binary: %s.`, dir+".exe")
log.Fatalf("Could not create target binary: %s", dir + ".exe")
os.Exit(1)
}
defer func() {
Expand Down

0 comments on commit 74bbd31

Please sign in to comment.