mirror of
https://github.com/bettercap/bettercap
synced 2025-07-15 01:23:42 -07:00
go vet fixes
This commit is contained in:
parent
8acf81f61d
commit
05b8e3065e
6 changed files with 32 additions and 28 deletions
|
@ -19,7 +19,7 @@ const (
|
|||
)
|
||||
|
||||
type ModuleHandler struct {
|
||||
sync.Mutex
|
||||
*sync.Mutex
|
||||
|
||||
Name string
|
||||
Description string
|
||||
|
@ -30,6 +30,7 @@ type ModuleHandler struct {
|
|||
|
||||
func NewModuleHandler(name string, expr string, desc string, exec func(args []string) error) ModuleHandler {
|
||||
h := ModuleHandler{
|
||||
Mutex: &sync.Mutex{},
|
||||
Name: name,
|
||||
Description: desc,
|
||||
Parser: nil,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue