mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
add other session providers (#5963)
This commit is contained in:
5
vendor/github.com/go-macaron/session/file.go
generated
vendored
5
vendor/github.com/go-macaron/session/file.go
generated
vendored
@ -81,6 +81,11 @@ func (s *FileStore) Release() error {
|
||||
s.p.lock.Lock()
|
||||
defer s.p.lock.Unlock()
|
||||
|
||||
// Skip encoding if the data is empty
|
||||
if len(s.data) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
data, err := EncodeGob(s.data)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user