mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-27 22:32:13 +02:00
feat(nip11): update to nips pr nostr-protocol/nip#1821
This commit is contained in:
@@ -67,7 +67,7 @@ func (c *Client) DownloadToFile(ctx context.Context, hash string, filePath strin
|
||||
return fmt.Errorf("%s is not present in %s: %d", hash, c.mediaserver, resp.StatusCode)
|
||||
}
|
||||
|
||||
file, err := os.OpenFile(filePath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644)
|
||||
file, err := os.OpenFile(filePath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o644)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create file %s for %s: %w", filePath, hash, err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user