Skip to content

Commit f7f0391

Browse files
committed
chore: formatting
Signed-off-by: Valery Piashchynski <[email protected]>
1 parent 4e77a1c commit f7f0391

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

github/repo.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
const (
2323
rrOwner string = "roadrunner-server"
2424
rrRepo string = "roadrunner"
25+
zipExt string = ".zip"
2526
)
2627

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

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

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

104-
rc, err := zip.OpenReader(name + ".zip")
105+
rc, err := zip.OpenReader(name + zipExt)
105106
if err != nil {
106107
return "", err
107108
}

0 commit comments

Comments
 (0)