satisfy full linter (#77)

This commit is contained in:
T. von Dein
2026-07-07 23:46:43 +02:00
parent b8e0ee074c
commit 0d63e7c4d2
47 changed files with 1206 additions and 1171 deletions

View File

@@ -26,6 +26,7 @@ import (
)
func any2string(in any) string {
//nolint:gocritic
switch val := in.(type) {
case string:
return val
@@ -45,10 +46,10 @@ func any2string(in any) string {
return val.Format("2006-01-02 15:04:05")
case []byte:
return string(val)
case types.DateTime, types.Percentage:
return val.(string)
case nil:
return "null"
case types.Percentage, types.DateTime:
return val.(string)
}
return ""
@@ -78,6 +79,7 @@ func (data *Table) preprocessRows() {
// determine max width per column
for _, entries := range data.rows {
currentWidth := 0
for idx, entry := range entries {
length := visibleLen(entry)