mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
more lint driven refactoring
This commit is contained in:
parent
7919cda5ec
commit
0de6f3a76e
57 changed files with 168 additions and 241 deletions
|
@ -42,7 +42,7 @@ func (m *Meta) Get(name string) interface{} {
|
|||
m.Lock()
|
||||
defer m.Unlock()
|
||||
|
||||
if v, found := m.m[name]; found == true {
|
||||
if v, found := m.m[name]; found {
|
||||
return v
|
||||
}
|
||||
return ""
|
||||
|
@ -75,7 +75,7 @@ func (m *Meta) GetOr(name string, dflt interface{}) interface{} {
|
|||
m.Lock()
|
||||
defer m.Unlock()
|
||||
|
||||
if v, found := m.m[name]; found == true {
|
||||
if v, found := m.m[name]; found {
|
||||
return v
|
||||
}
|
||||
return dflt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue