mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 13:16:53 +00:00
Other: Fix flaky cookies test
This commit is contained in:
@ -15,11 +15,6 @@ import (
|
||||
"github.com/bradenaw/juniper/xslices"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrInsecure = errors.New("the vault is insecure")
|
||||
ErrCorrupt = errors.New("the vault is corrupt")
|
||||
)
|
||||
|
||||
type Vault struct {
|
||||
path string
|
||||
enc []byte
|
||||
@ -122,6 +117,10 @@ func (vault *Vault) DeleteUser(userID string) error {
|
||||
})
|
||||
}
|
||||
|
||||
func (vault *Vault) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func newVault(path, gluonDir string, gcm cipher.AEAD) (*Vault, bool, error) {
|
||||
if _, err := os.Stat(path); errors.Is(err, fs.ErrNotExist) {
|
||||
if _, err := initVault(path, gluonDir, gcm); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user