fix: lint error

pull/3339/head
JIeJaitt 2025-03-12 16:06:21 +08:00
parent d8c5b4e06a
commit 14a8cc4220
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@ package session
import (
"errors"
"fmt"
"sync"
"testing"
"time"
@ -1553,7 +1552,7 @@ type mockGetErrorStorage struct {
func (m *mockGetErrorStorage) Get(id string) ([]byte, error) {
if id == "session-with-error" {
return nil, fmt.Errorf("mock get error")
return nil, errors.New("mock get error")
}
return m.realStorage.Get(id)
}