diff options
| author | Will Hawkins <[email protected]> | 2022-06-22 15:10:07 -0400 |
|---|---|---|
| committer | Will Hawkins <[email protected]> | 2022-06-22 15:10:07 -0400 |
| commit | 0609b02f82321577ba80cd368c6085fd0442f3f7 (patch) | |
| tree | 782f966243f9d2dbcd328837a2cdf9ce5c1f948b /networkQuality.go | |
| parent | 8595ff279dc46e3f974661e29686af3de5e01026 (diff) | |
[Cleanup] Make long lines shorter and fix static fmt warnings
Besides running golines (for the first time in a while now that
the tool supports generics), this commit removes punctuation and
newlines from Errorf parameters -- something that gofmt does not
like (I never knew!).
Diffstat (limited to 'networkQuality.go')
| -rw-r--r-- | networkQuality.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/networkQuality.go b/networkQuality.go index eb8bdc4..93c42e0 100644 --- a/networkQuality.go +++ b/networkQuality.go @@ -110,7 +110,9 @@ func main() { if *calculateExtendedStats && !extendedstats.ExtendedStatsAvailable() { *calculateExtendedStats = false - fmt.Printf("Warning: Calculation of extended statistics was requested but they are not supported on this platform.\n") + fmt.Printf( + "Warning: Calculation of extended statistics was requested but they are not supported on this platform.\n", + ) } if err := config.Get(configHostPort, *configPath); err != nil { @@ -319,7 +321,11 @@ func main() { panic("Extended stats are not available but the user requested their calculation.") } if err := extendedStats.IncorporateConnectionStats(downloadSaturation.LGCs[i].Stats().ConnInfo.Conn); err != nil { - fmt.Fprintf(os.Stderr, "Warning: Could not add extended stats for the connection: %v", err) + fmt.Fprintf( + os.Stderr, + "Warning: Could not add extended stats for the connection: %v", + err, + ) } } } |
