Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Valery Piashchynski <[email protected]>
  • Loading branch information
rustatian committed Jan 15, 2024
1 parent 4e77a1c commit f7f0391
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions github/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
const (
rrOwner string = "roadrunner-server"
rrRepo string = "roadrunner"
zipExt string = ".zip"
)

/*
Expand Down Expand Up @@ -84,8 +85,8 @@ func (r *GHRepo) DownloadTemplate(tmp, version string) (string, error) { //nolin
name := path.Join(tmp, "roadrunner-server-"+version)
_ = os.RemoveAll(name)

r.log.Debug("[FLUSHING DATA ON THE DISK]", zap.String("path", name+".zip"))
f, err := os.Create(name + ".zip")
r.log.Debug("[FLUSHING DATA ON THE DISK]", zap.String("path", name+zipExt))
f, err := os.Create(name + zipExt)
if err != nil {
return "", err
}
Expand All @@ -101,7 +102,7 @@ func (r *GHRepo) DownloadTemplate(tmp, version string) (string, error) { //nolin

r.log.Debug("[SAVED]", zap.Int("bytes written", n))

rc, err := zip.OpenReader(name + ".zip")
rc, err := zip.OpenReader(name + zipExt)
if err != nil {
return "", err
}
Expand Down

0 comments on commit f7f0391

Please sign in to comment.