Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 9034400

Browse files
author
Matthieu Nottale
committed
extract: cosmetic changes.
Signed-off-by: Matthieu Nottale <[email protected]>
1 parent 080c986 commit 9034400

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packager/extract.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ func findApp() (string, error) {
5252
func Extract(appname string) (string, func(), error) {
5353
if appname == "" {
5454
var err error
55-
appname, err = findApp()
56-
if err != nil {
55+
if appname, err = findApp(); err != nil {
5756
return "", nil, err
5857
}
5958
}
@@ -76,8 +75,7 @@ func Extract(appname string) (string, func(), error) {
7675
if err != nil {
7776
return "", noop, err
7877
}
79-
err = extract(appname, tempDir)
80-
if err != nil {
78+
if err = extract(appname, tempDir); err != nil {
8179
return "", noop, err
8280
}
8381
return tempDir, func() { os.RemoveAll(tempDir) }, nil

0 commit comments

Comments
 (0)