Skip to content

Commit ab7810e

Browse files
kataraszhsj
authored andcommitted
minor code improvements
1 parent 9ae09fa commit ab7810e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

make.go

+3
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ func (u *upstream) tarballFromHoster() error {
138138
var tarURL string
139139
repo := strings.TrimSuffix(u.rr.Repo, ".git")
140140
repoU, err := url.Parse(repo)
141+
if err != nil {
142+
return err
143+
}
141144

142145
switch repoU.Host {
143146
case "github.com":

progress.go

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ const (
1515
Mebi
1616
Gibi
1717
Tebi
18-
Pebi
19-
Exbi
2018
)
2119

2220
func humanizeBytes(b int64) string {

0 commit comments

Comments
 (0)