mirror of
https://github.com/bettercap/bettercap
synced 2025-07-07 21:42:06 -07:00
lint driven refactoring
This commit is contained in:
parent
bc3be7dd2b
commit
7919cda5ec
12 changed files with 45 additions and 49 deletions
|
@ -134,7 +134,7 @@ func (api *RestAPI) Configure() error {
|
|||
return err
|
||||
} else if err, api.useWebsocket = api.BoolParam("api.rest.websocket"); err != nil {
|
||||
return err
|
||||
} else if core.Exists(api.certFile) == false || core.Exists(api.keyFile) == false {
|
||||
} else if !core.Exists(api.certFile) || !core.Exists(api.keyFile) {
|
||||
log.Info("Generating TLS key to %s", api.keyFile)
|
||||
log.Info("Generating TLS certificate to %s", api.certFile)
|
||||
if err := tls.Generate(api.certFile, api.keyFile); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue