Skip to content

Commit a22e2ba

Browse files
committed
fix
1 parent d9fec11 commit a22e2ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ func main() {
207207
}
208208

209209
func initRedditVendor(ctx context.Context, metrics metrics.Registry, aggregator *feed.Aggregator, mediam *feed.MediaManager, sqlite3 *feed.SQLStorage, config *reddit.Config) error {
210+
if config == nil {
211+
return nil
212+
}
213+
210214
store, err := (&reddit.SQLStorage{
211215
SQLStorage: sqlite3,
212216
ThingTTL: 7 * 24 * time.Hour,

0 commit comments

Comments
 (0)