tremplin: Fix linter errors

As part of b:218608945 `golint` will be replaced with `staticcheck` as
the default Go linter for ChromeOS. As a preliminary step we need to
ensure `staticcheck` passes with current Go packages.

This fixes the following errors[1] for test/provision (`cros-provision`):
* S1005 (unnecessary use of the blank identifier)
* S1025 (unnecessary use of fmt.Sprintf)
* SA4006 (assigned but unused variable)
* SA4017 (return value of function discarded)
* ST1005 (incorrectly formatted error strings)
* U1000 (unused const)

[1] Please refer to https://staticcheck.dev/docs/checks/ for details
about each check.

BUG=b:218608945
TEST=staticcheck -checks "inherit,-SA1019" \
    "chromiumos/tremplin/..."

Change-Id: I5f45df1d5f1230c85184f0a066bb7ac5a84a0f6d
Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tremplin/+/5873243
Reviewed-by: Jordan Abrahams-Whitehead <ajordanr@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: George Burgess <gbiv@chromium.org>
12 files changed
tree: f4925babe15c37031b20b0941661e2d9107ec1d2
  1. src/
  2. .gitignore
  3. DIR_METADATA
  4. OWNERS
  5. README.md
README.md

Tremplin

Tremplin is the “springboard” daemon that runs in the Termina VM and exposes a gRPC interface for managing LXD containers.