fix(cloudreve): skip init login when using cookie (#4341)

This commit is contained in:
Xi Wuuuuuuuuuuuu~~~~~~~~~~~~~~~ 2023-05-08 19:25:36 +08:00 committed by GitHub
parent b03879403f
commit 9502f5acd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,9 @@ func (d *Cloudreve) GetAddition() driver.Additional {
}
func (d *Cloudreve) Init(ctx context.Context) error {
if d.Cookie != "" {
return nil
}
return d.login()
}