1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-01 17:38:37 +00:00

Add logger

This commit is contained in:
Frédéric Guillot 2017-12-15 18:55:57 -08:00
parent c6d9eb3614
commit 1d8193b892
56 changed files with 228 additions and 192 deletions

View file

@ -68,9 +68,9 @@ func (s *Storage) Integration(userID int64) (*model.Integration, error) {
)
switch {
case err == sql.ErrNoRows:
return nil, nil
return &integration, nil
case err != nil:
return nil, fmt.Errorf("unable to fetch integration row: %v", err)
return &integration, fmt.Errorf("unable to fetch integration row: %v", err)
}
return &integration, nil