Skip to content

Commit

Permalink
style(all): run "go fmt"
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiodangelis committed Dec 20, 2023
1 parent 9048e69 commit c522e4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion application/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Flags struct {
TlsCert string
TlsKey string
Output string
Reversed bool
Reversed bool
}

type App struct {
Expand Down
8 changes: 3 additions & 5 deletions util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ func Expand(input string) string {
return input
}



// ZipFiles and return the resulting zip's filename
func ZipFiles(files []string) (string, error) {
zip := new(archivex.ZipFile)
Expand All @@ -46,11 +44,11 @@ func ZipFiles(files []string) (string, error) {
if err := os.Rename(tmpfile.Name(), tmpfile.Name()+".zip"); err != nil {
return "", err
}
tmpfile,err = os.OpenFile(tmpfile.Name()+".zip", os.O_RDWR, 0644)
tmpfile, err = os.OpenFile(tmpfile.Name()+".zip", os.O_RDWR, 0644)
if err != nil {
return "", err
}
if err := zip.CreateWriter(tmpfile.Name(),tmpfile); err != nil {
if err := zip.CreateWriter(tmpfile.Name(), tmpfile); err != nil {
return "", err
}

Expand Down Expand Up @@ -78,7 +76,7 @@ func ZipFiles(files []string) (string, error) {
if err := zip.Writer.Close(); err != nil {
return "", err
}
if err:= tmpfile.Close(); err != nil {
if err := tmpfile.Close(); err != nil {
return "", err
}

Expand Down

0 comments on commit c522e4b

Please sign in to comment.