mirror of
https://github.com/hairyhenderson/go-onerng.git
synced 2025-07-10 04:13:44 -05:00
fix(lint): Upgrade to golangci-lint v2, Go 1.24, and fixing lint errors
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
This commit is contained in:
@ -184,8 +184,6 @@ func readCmd(cmd *cobra.Command, _ []string) error {
|
||||
|
||||
// humanizeBytes produces a human readable representation of an IEC size.
|
||||
// Taken from github.com/dustin/go-humanize
|
||||
//
|
||||
//nolint:gomnd
|
||||
func humanizeBytes(s float64) string {
|
||||
base := 1024.0
|
||||
sizes := []string{"B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB"}
|
||||
|
@ -21,7 +21,7 @@ func commands() *cobra.Command {
|
||||
This tool can be used to verify that the OneRNG device operates
|
||||
correctly, and that the firmware has not been tampered with.`,
|
||||
Version: version.Version,
|
||||
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
|
||||
cmd.SilenceErrors = true
|
||||
cmd.SilenceUsage = true
|
||||
|
||||
|
Reference in New Issue
Block a user