mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
Other: go mod tidy/goimports/gofumpt after rebase on devel
This commit is contained in:
@ -185,7 +185,7 @@ func newTestPersister(tb testing.TB) *testPersister {
|
||||
path := filepath.Join(tb.TempDir(), "cookies.json")
|
||||
|
||||
if _, err := os.Stat(path); errors.Is(err, fs.ErrNotExist) {
|
||||
if err := os.WriteFile(path, []byte{}, 0600); err != nil {
|
||||
if err := os.WriteFile(path, []byte{}, 0o600); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
@ -198,5 +198,5 @@ func (p *testPersister) GetCookies() ([]byte, error) {
|
||||
}
|
||||
|
||||
func (p *testPersister) SetCookies(rawCookies []byte) error {
|
||||
return os.WriteFile(p.path, rawCookies, 0600)
|
||||
return os.WriteFile(p.path, rawCookies, 0o600)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user