Skip to content

Commit

Permalink
Merge pull request #44 from bgokden/refactor
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
bgokden authored Jul 2, 2021
2 parents 179ae6d + b6ddea3 commit 08b7a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func (dt *Data) AddSource(dataSource DataSource) error {
if dt.Sources == nil {
dt.InitData()
}
if dt.Sources != nil {
if dt.Sources == nil {
return errors.New("Sources is still nil")
}
return dt.Sources.Add(dataSource.GetID(), dataSource, cache.DefaultExpiration)
Expand Down

0 comments on commit 08b7a7c

Please sign in to comment.