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:
Jarek Radosz 2023-08-24 23:16:32 +02:00 committed by GitHub
parent 0944666232
commit e60d227c8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true # 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" desc "downloads MaxMind's GeoLite2-City databases"
task "maxminddb:get" => "environment" do task "maxminddb:get" => "environment" do