lib/gtfs/realtime.rb in gtfs-realtime-0.2.0 vs lib/gtfs/realtime.rb in gtfs-realtime-0.2.1

- old
+ new

@@ -38,9 +38,10 @@ def load_static_feed!(force: false) return if !force && GTFS::Realtime::Route.count > 0 static_data = GTFS::Source.build(@configuration.static_feed) + return unless static_data GTFS::Realtime::Model.db.transaction do GTFS::Realtime::Route.dataset.delete GTFS::Realtime::Route.multi_insert( static_data.routes.collect do |route|