ignore golint for some stutter that we want to keep as-is

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas 2020-04-10 07:19:17 -04:00 committed by Srini Brahmaroutu
parent e2ef310046
commit 93189a19bc
2 changed files with 4 additions and 4 deletions

View File

@ -77,7 +77,7 @@ type Interface interface {
var _ Interface = &Mounter{}
// MountPoint represents a single line in /proc/mounts or /etc/fstab.
type MountPoint struct {
type MountPoint struct { // nolint: golint
Device string
Path string
Type string
@ -86,7 +86,7 @@ type MountPoint struct {
Pass int
}
type MountErrorType string
type MountErrorType string // nolint: golint
const (
FilesystemMismatch MountErrorType = "FilesystemMismatch"
@ -97,7 +97,7 @@ const (
UnknownMountError MountErrorType = "UnknownMountError"
)
type MountError struct {
type MountError struct { // nolint: golint
Type MountErrorType
Message string
}

View File

@ -56,7 +56,7 @@ func IsCorruptedMnt(err error) bool {
}
// MountInfo represents a single line in /proc/<pid>/mountinfo.
type MountInfo struct {
type MountInfo struct { // nolint: golint
// Unique ID for the mount (maybe reused after umount).
ID int
// The ID of the parent mount (or of self for the root of this mount namespace's mount tree).