mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-15 07:35:11 +00:00
ci/cd: add basic static analysis for backend (#389)
This commit is contained in:
@@ -124,7 +124,7 @@ func (s *GeoLiteService) updateDatabase() error {
|
||||
log.Println("Updating GeoLite2 City database...")
|
||||
downloadUrl := fmt.Sprintf(common.EnvConfig.GeoLiteDBUrl, common.EnvConfig.MaxMindLicenseKey)
|
||||
|
||||
// Download the database tar.gz file
|
||||
// Download the database tar.gz file nolint:gosec
|
||||
resp, err := http.Get(downloadUrl)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to download database: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user