Use simpler os.Create for writing files
This commit is contained in:
parent
29bf819ab1
commit
f4a3598191
@ -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…
Reference in New Issue
Block a user