From fb935d1e4e6f25004e8cae2825ec317494474fcb Mon Sep 17 00:00:00 2001 From: Bobbie Soedirgo Date: Mon, 18 Oct 2021 12:02:04 +0800 Subject: [PATCH] chore: satisfy golangci-lint --- internal/link/link.go | 4 +++- internal/utils/utils.go | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/link/link.go b/internal/link/link.go index e6a66d3f0..b843ff431 100644 --- a/internal/link/link.go +++ b/internal/link/link.go @@ -439,7 +439,9 @@ EOSQL if err != nil { return err } - f.Write(diffBytes) + if _, err := f.Write(diffBytes); err != nil { + return err + } if err := f.Close(); err != nil { return err diff --git a/internal/utils/utils.go b/internal/utils/utils.go index cd8b922c5..15d0f606f 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -247,6 +247,7 @@ func DockerRemoveAll() { }); err != nil { // TODO: Handle errors // fmt.Fprintln(os.Stderr, err) + _ = err } wg.Done()