Skip to content

Commit

Permalink
chore: Refactored wrong use of error
Browse files Browse the repository at this point in the history
  • Loading branch information
stevedylandev committed Nov 18, 2024
1 parent ff71443 commit 6c08dd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateways.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ func GetSignedURL(cid string, expires int) (GetSignedURLResponse, error) {
func OpenCID(cid string) error {
data, err := GetSignedURL(cid, 30)
if err != nil {
fmt.Errorf("Problem creating URL %d", err)
return fmt.Errorf("Problem creating URL %d", err)
}
err = open.Run(data.Data)
if err != nil {
fmt.Errorf("Problem opening URL %d", err)
return fmt.Errorf("Problem opening URL %d", err)
}
return nil
}

0 comments on commit 6c08dd9

Please sign in to comment.