feat(nip11): update to nips pr nostr-protocol/nip#1821

This commit is contained in:
Kay
2025-03-25 14:37:14 +00:00
committed by fiatjaf_
parent b6f0e46a85
commit 40535e6b19
5 changed files with 21 additions and 19 deletions

View File

@@ -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)
}