DEV: Avoid constant redefinition warnings in specs (#23241)
Specs sometimes do `Discourse::Application.load_tasks` which re-loads rake task files, causing constant redefinition.
This commit is contained in:
parent
0944666232
commit
e60d227c8f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue