From 158e22f2a7de41f03559e681832f30a63f9b6fc6 Mon Sep 17 00:00:00 2001 From: Martin Habovstiak Date: Tue, 10 Aug 2021 08:24:31 +0200 Subject: [PATCH] Documented the menaing of returned bool --- loopd/run.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loopd/run.go b/loopd/run.go index f17cfae..ff445fb 100644 --- a/loopd/run.go +++ b/loopd/run.go @@ -250,7 +250,8 @@ func Run(rpcCfg RPCConfig) error { } // getConfigPath gets our config path based on the values that are set in our -// config. +// config. The returned bool is set to true if the config file path was set +// explicitly by the user and thus should not be ignored if it doesn't exist. func getConfigPath(cfg Config, loopDir string) (string, bool) { // If the config file path provided by the user is set, then we just // use this value.