Skip to content

Commit

Permalink
update NoCopy
Browse files Browse the repository at this point in the history
nocopy is for go vet check
  • Loading branch information
yinheli committed Jul 15, 2021
1 parent 3b5b554 commit 53c6a32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/common/nocopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ package common
type NoCopy struct{}

// Lock is a no-op used by -copylocks checker from `go vet`.
func (*NoCopy) Lock() {}
func (*NoCopy) Lock() {}

// Unlock
func (*NoCopy) Unlock() {}

0 comments on commit 53c6a32

Please sign in to comment.