Skip to content

Commit cebc77d

Browse files
authored
Fix linter errors visible only on Mac Go builds
1 parent 1b280b0 commit cebc77d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

updater/apply_darwin.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ func apply(targetPath string, current releaser.Version, client *releaser.Client,
6060
tmpZip := tmp.Join("update.zip")
6161
tmpAppPath := tmp.Join(fmt.Sprintf(".%s.new", currentFolderAppName))
6262

63-
defer tmp.RemoveAll()
63+
defer func() {
64+
_ = tmp.RemoveAll()
65+
}()
6466

6567
f, err := tmpZip.Create()
6668
if err != nil {

updater/hide_noop.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
package updater
55

6+
//nolint:unused
67
func hideFile(_ string) error {
78
return nil
89
}

0 commit comments

Comments
 (0)