Skip to content

Commit a0ca41e

Browse files
committed
cli/command/formatter: suppress some errors
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 82e2efb commit a0ca41e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cli/command/formatter/disk_usage.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ func (ctx *DiskUsageContext) verboseWriteTable(duc *diskUsageContext) error {
237237
if err != nil {
238238
return err
239239
}
240-
ctx.Output.Write([]byte("\nLocal Volumes space usage:\n\n"))
240+
_, _ = ctx.Output.Write([]byte("\nLocal Volumes space usage:\n\n"))
241241
for _, v := range duc.Volumes {
242242
if err := ctx.contextFormat(tmpl, v); err != nil {
243243
return err
@@ -249,7 +249,7 @@ func (ctx *DiskUsageContext) verboseWriteTable(duc *diskUsageContext) error {
249249
if err != nil {
250250
return err
251251
}
252-
fmt.Fprintf(ctx.Output, "\nBuild cache usage: %s\n\n", units.HumanSize(float64(ctx.BuilderSize)))
252+
_, _ = fmt.Fprintf(ctx.Output, "\nBuild cache usage: %s\n\n", units.HumanSize(float64(ctx.BuilderSize)))
253253
for _, v := range duc.BuildCache {
254254
if err := ctx.contextFormat(tmpl, v); err != nil {
255255
return err

0 commit comments

Comments
 (0)