From 90e24b79cb5cd975f676baf3142cca33b4b211fb Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sun, 1 Aug 2021 16:58:46 +0200 Subject: [PATCH] cleanup --- internal/confwatcher/confwatcher.go | 1 + internal/core/path.go | 1 + internal/externalcmd/cmd.go | 1 + 3 files changed, 3 insertions(+) diff --git a/internal/confwatcher/confwatcher.go b/internal/confwatcher/confwatcher.go index 720d5c8b..c5cf3ff5 100644 --- a/internal/confwatcher/confwatcher.go +++ b/internal/confwatcher/confwatcher.go @@ -52,6 +52,7 @@ func New(confPath string) (*ConfWatcher, error) { } go w.run() + return w, nil } diff --git a/internal/core/path.go b/internal/core/path.go index 3a196ffe..59c867a3 100644 --- a/internal/core/path.go +++ b/internal/core/path.go @@ -294,6 +294,7 @@ func newPath( pa.wg.Add(1) go pa.run() + return pa } diff --git a/internal/externalcmd/cmd.go b/internal/externalcmd/cmd.go index ccc503ff..8d64504d 100644 --- a/internal/externalcmd/cmd.go +++ b/internal/externalcmd/cmd.go @@ -38,6 +38,7 @@ func New(cmdstr string, restart bool, env Environment) *Cmd { } go e.run() + return e }