From 97d2ef2712a3900ffae2cd11b6e9781457c07385 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Mon, 19 Mar 2018 19:20:02 +0000 Subject: [PATCH] lint: Annotate unused virtcontainers iota consts Added magic tags for `gometalinter` to ignore two unused `const`s that form part of an `iota` sequence. Signed-off-by: James O. D. Hunt --- virtcontainers/hypervisor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virtcontainers/hypervisor.go b/virtcontainers/hypervisor.go index d341640731..ad867bc2eb 100644 --- a/virtcontainers/hypervisor.go +++ b/virtcontainers/hypervisor.go @@ -68,13 +68,13 @@ const ( netDev // SerialDev is the serial device type. - serialDev + serialDev // nolint: varcheck,unused // BlockDev is the block device type. blockDev // ConsoleDev is the console device type. - consoleDev + consoleDev // nolint: varcheck,unused // SerialPortDev is the serial port device type. serialPortDev