mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-21 13:23:09 +01:00
fix lint issues
This commit is contained in:
@@ -39,7 +39,7 @@ func main() {
|
||||
Author: "CrazyMax",
|
||||
Version: version,
|
||||
}
|
||||
meta.UserAgent = fmt.Sprintf("%s/%s go/%s %s", meta.ID, meta.Version, runtime.Version()[2:], strings.Title(runtime.GOOS))
|
||||
meta.UserAgent = fmt.Sprintf("%s/%s go/%s %s", meta.ID, meta.Version, runtime.Version()[2:], strings.Title(runtime.GOOS)) //nolint:staticcheck // ignoring "SA1019: strings.Title is deprecated", as for our use we don't need full unicode support
|
||||
if meta.Hostname, err = os.Hostname(); err != nil {
|
||||
log.Fatal().Err(err).Msg("Cannot resolve hostname")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user