mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 05:06:51 +00:00
feat: only persist cookies on app teardown
This commit is contained in:
@ -331,7 +331,6 @@ func mustMarshal(t *testing.T, v interface{}) []byte {
|
||||
|
||||
type fakeSettings struct {
|
||||
*settings.Settings
|
||||
dir string
|
||||
}
|
||||
|
||||
// newFakeSettings creates a temporary folder for files.
|
||||
@ -341,10 +340,7 @@ func newFakeSettings(rollout float64, earlyAccess bool) *fakeSettings {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
s := &fakeSettings{
|
||||
Settings: settings.New(dir),
|
||||
dir: dir,
|
||||
}
|
||||
s := &fakeSettings{Settings: settings.New(dir)}
|
||||
|
||||
s.SetFloat64(settings.RolloutKey, rollout)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user