Skip to content

Commit ee42326

Browse files
committed
fix: lint
1 parent 107f430 commit ee42326

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

geoblock.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,11 @@ func (a *GeoBlock) getCountryCode(req *http.Request, ipAddressString string) (st
407407
}
408408

409409
if a.logAPIRequests {
410-
a.infoLogger.Printf("%s: Failed to read country from HTTP header field [%s], continuing with API lookup.", a.name, a.iPGeolocationHTTPHeaderField)
410+
a.infoLogger.Printf(
411+
"%s: Failed to read country from HTTP header field [%s], continuing with API lookup.",
412+
a.name,
413+
a.iPGeolocationHTTPHeaderField
414+
)
411415
}
412416
}
413417

@@ -591,7 +595,11 @@ func printConfiguration(name string, config *Config, logger *log.Logger) {
591595
if len(config.IPGeolocationHTTPHeaderField) == 0 {
592596
logger.Printf("%s: use custom HTTP header field for country lookup: %t", name, false)
593597
} else {
594-
logger.Printf("%s: use custom HTTP header field for country lookup: %t [%s]", name, true, config.IPGeolocationHTTPHeaderField)
598+
logger.Printf("%s: use custom HTTP header field for country lookup: %t [%s]",
599+
name,
600+
true,
601+
config.IPGeolocationHTTPHeaderField
602+
)
595603
}
596604
logger.Printf("%s: API uri: %s", name, config.API)
597605
logger.Printf("%s: API timeout: %d", name, config.APITimeoutMs)

0 commit comments

Comments
 (0)