Skip to content

A platform for community discussion. Free, open, simple.

DEV: Avoid constant redefinition warnings in specs (#23241)

Jarek Radosze60d227c8f80
diff --git a/lib/tasks/maxminddb.rake b/lib/tasks/maxminddb.rake
index c83162dbab9..011825d9d8f 100644
--- a/lib/tasks/maxminddb.rake
+++ b/lib/tasks/maxminddb.rake
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-GEOLITE_DBS = %w[GeoLite2-City GeoLite2-ASN]
+GEOLITE_DBS ||= %w[GeoLite2-City GeoLite2-ASN]
desc "downloads MaxMind's GeoLite2-City databases"
task "maxminddb:get" => "environment" do