mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-30 10:38:28 +01:00
lint
* reduce staticcheck warnings
This commit is contained in:
@@ -51,10 +51,7 @@ func (p *program) Stop(s service.Service) error {
|
||||
|
||||
func fileExists(filename string) bool {
|
||||
_, err := os.Stat(filename)
|
||||
if os.IsNotExist(err) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
return !os.IsNotExist(err)
|
||||
}
|
||||
|
||||
func doService(configPath *string, configTest *bool, build string, serviceFlag *string) {
|
||||
|
||||
Reference in New Issue
Block a user