refactor: make cookie architecture less crazy

This commit is contained in:
James Houlahan
2020-08-13 11:27:42 +02:00
parent 9f24c666b9
commit 209af59232
4 changed files with 31 additions and 37 deletions

View File

@ -275,7 +275,7 @@ func run(context *cli.Context) (contextError error) { // nolint[funlen]
cm.SetRoundTripper(cfg.GetRoundTripper(cm, eventListener))
// Cookies must be persisted across restarts.
jar, err := cookies.NewCookieJar(cookies.NewPersister(pref))
jar, err := cookies.NewCookieJar(pref)
if err != nil {
logrus.WithError(err).Warn("Could not create cookie jar")
} else {