mirror of
https://git.sr.ht/~sircmpwn/tokidoki
synced 2025-12-12 06:07:22 +01:00
Use simpler os.Create for writing files
This commit is contained in:
parent
29bf819ab1
commit
f4a3598191
1 changed files with 1 additions and 1 deletions
|
|
@ -298,7 +298,7 @@ func (b *filesystemBackend) PutAddressObject(ctx context.Context, path string, c
|
||||||
return "", carddav.NewPreconditionError(carddav.PreconditionNoUIDConflict)
|
return "", carddav.NewPreconditionError(carddav.PreconditionNoUIDConflict)
|
||||||
}
|
}
|
||||||
|
|
||||||
f, err := os.OpenFile(localPath, os.O_RDWR|os.O_CREATE, 0644)
|
f, err := os.Create(localPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue