fix badge, check error

This commit is contained in:
2025-11-03 22:03:26 +01:00
parent bed8152078
commit 70cb135341
2 changed files with 6 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
[![Actions](https://codeberg.org/scip/tablizer/actions/workflows/ci.yaml/badge.svg)](https://codeberg.org/scip/tablizer/actions)
[![status-badge](https://ci.codeberg.org/api/badges/15519/status.svg)](https://ci.codeberg.org/repos/15519)
[![License](https://img.shields.io/badge/license-GPL-blue.svg)](https://codeberg.org/scip/tablizer/blob/master/LICENSE)
[![Go Report Card](https://goreportcard.com/badge/codeberg.org/scip/tablizer)](https://goreportcard.com/report/codeberg.org/scip/tablizer)

View File

@@ -26,11 +26,11 @@ import (
"strconv"
"strings"
"codeberg.org/scip/tablizer/cfg"
"github.com/gookit/color"
"github.com/olekukonko/tablewriter"
"github.com/olekukonko/tablewriter/renderer"
"github.com/olekukonko/tablewriter/tw"
"codeberg.org/scip/tablizer/cfg"
"gopkg.in/yaml.v3"
)
@@ -72,7 +72,10 @@ func printData(writer io.Writer, conf cfg.Config, data *Tabdata) {
}
func output(writer io.Writer, str string) {
fmt.Fprint(writer, str)
_, err := fmt.Fprint(writer, str)
if err != nil {
log.Fatalf("failed to print output: %s", err)
}
}
/*