fix golint issue for pkg/volume/util

This commit is contained in:
Cheng Pan
2018-09-10 21:22:15 +00:00
parent 26403b758b
commit a5c4f341d7
10 changed files with 25 additions and 23 deletions

View File

@@ -20,7 +20,7 @@ import (
k8stypes "k8s.io/apimachinery/pkg/types"
)
// This error on attach indicates volume is attached to a different node
// DanglingAttachError indicates volume is attached to a different node
// than we expected.
type DanglingAttachError struct {
msg string
@@ -32,6 +32,7 @@ func (err *DanglingAttachError) Error() string {
return err.msg
}
// NewDanglingError create a new dangling error
func NewDanglingError(msg string, node k8stypes.NodeName, devicePath string) error {
return &DanglingAttachError{
msg: msg,