mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
20191217 gosec (#796)
* Add gosec to the Makefile Signed-off-by: Chris Cummer <chriscummer@me.com> * Fix some issues found by gosec Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
@@ -82,7 +82,7 @@ func BuildStars(data []Bar, maxStars int, starChar string) string {
|
||||
}
|
||||
|
||||
//write the line
|
||||
buffer.WriteString(
|
||||
_, err := buffer.WriteString(
|
||||
fmt.Sprintf(
|
||||
"%s%s[[%s]%s[default]%s] %s\n",
|
||||
bar.Label,
|
||||
@@ -93,6 +93,9 @@ func BuildStars(data []Bar, maxStars int, starChar string) string {
|
||||
label,
|
||||
),
|
||||
)
|
||||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
|
||||
return buffer.String()
|
||||
|
||||
Reference in New Issue
Block a user