diff options
author | Frédéric Guillot <fred@miniflux.net> | 2017-12-15 18:55:57 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2017-12-15 18:55:57 -0800 |
commit | 1d8193b892bf63db6b91c66b9d048873bf1bc4cf (patch) | |
tree | 4ca54691f7fab88f73f657f005e26d75ae5f0058 /storage/integration.go | |
parent | c6d9eb361454b70406cf6573b284d5e99ba3a2d2 (diff) |
Add logger
Diffstat (limited to 'storage/integration.go')
-rw-r--r-- | storage/integration.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/integration.go b/storage/integration.go index 886e02f..6d89a68 100644 --- a/storage/integration.go +++ b/storage/integration.go @@ -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 |