Skip to content

Commit

Permalink
fuck
Browse files Browse the repository at this point in the history
  • Loading branch information
luludotdev committed Jun 3, 2021
1 parent 5880787 commit 586cca9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions autodns/pkg/upgrader/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ func (r *Release) GetAsset() *ReleaseAsset {
}

for _, asset := range r.Assets {
arch := runtime.GOARCH
if arch != "linux" {
if runtime.GOOS != "linux" {
return nil
}

if strings.Contains(asset.Name, arch) {
if strings.Contains(asset.Name, runtime.GOARCH) {
return &asset
}
}
Expand Down

0 comments on commit 586cca9

Please sign in to comment.