mirror of
https://github.com/miniflux/v2.git
synced 2025-08-11 17:51:01 +00:00
refactor: replace interface{}
with any
This commit is contained in:
parent
045f2f1747
commit
80f48c88c7
12 changed files with 26 additions and 26 deletions
|
@ -521,7 +521,7 @@ func (s *Storage) UserByAPIKey(token string) (*model.User, error) {
|
|||
return s.fetchUser(query, token)
|
||||
}
|
||||
|
||||
func (s *Storage) fetchUser(query string, args ...interface{}) (*model.User, error) {
|
||||
func (s *Storage) fetchUser(query string, args ...any) (*model.User, error) {
|
||||
var user model.User
|
||||
err := s.db.QueryRow(query, args...).Scan(
|
||||
&user.ID,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue