cleanup: fix golint warnings in util, e2e

util: golint warns about exported methods to have a
comment or to unexport them.

e2e: golint warns about package comment to be of the form
"Package e2e ..."

Reported-by: https://goreportcard.com/report/github.com/ceph/ceph-csi

Updates: #975

Signed-off-by: Yug Gupta <ygupta@redhat.com>
This commit is contained in:
Yug Gupta
2020-05-20 12:51:01 +05:30
committed by mergify[bot]
parent 979f2b36ed
commit 753f6b7fec
4 changed files with 10 additions and 1 deletions

View File

@ -34,7 +34,7 @@ type VolumeLocks struct {
mux sync.Mutex
}
// NewVolumeLocks returns new VolumeLocks
// NewVolumeLocks returns new VolumeLocks.
func NewVolumeLocks() *VolumeLocks {
return &VolumeLocks{
locks: sets.NewString(),
@ -53,6 +53,7 @@ func (vl *VolumeLocks) TryAcquire(volumeID string) bool {
return true
}
// Release deletes the lock on volumeID.
func (vl *VolumeLocks) Release(volumeID string) {
vl.mux.Lock()
defer vl.mux.Unlock()