From eb731e5bf984b38db4e94fe3fb2a28e63b1f77e8 Mon Sep 17 00:00:00 2001 From: Simon Let Date: Sat, 17 Dec 2022 17:12:07 +0100 Subject: [PATCH] spell --- internal/collect/collect.go | 8 ++++---- internal/histio/histio.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/collect/collect.go b/internal/collect/collect.go index 15d2bbb..45a619b 100644 --- a/internal/collect/collect.go +++ b/internal/collect/collect.go @@ -83,17 +83,17 @@ func ReadFileContent(logger *zap.Logger, path string) string { } // GetGitDirs based on result of git "cdup" command -func GetGitDirs(logger *zap.Logger, cdup string, exitCode int, pwd string) (string, string) { +func GetGitDirs(logger *zap.Logger, cdUp string, exitCode int, pwd string) (string, string) { if exitCode != 0 { return "", "" } - abspath := filepath.Clean(filepath.Join(pwd, cdup)) - realpath, err := filepath.EvalSymlinks(abspath) + absPath := filepath.Clean(filepath.Join(pwd, cdUp)) + realPath, err := filepath.EvalSymlinks(absPath) if err != nil { logger.Error("Error while handling git dir paths", zap.Error(err)) return "", "" } - return abspath, realpath + return absPath, realPath } // GetTimezoneOffsetInSeconds based on zone returned by date command diff --git a/internal/histio/histio.go b/internal/histio/histio.go index 143727e..001623a 100644 --- a/internal/histio/histio.go +++ b/internal/histio/histio.go @@ -24,7 +24,7 @@ func New(sugar *zap.SugaredLogger, dataDir, deviceID string) *Histio { sugarHistio := sugar.With(zap.String("component", "histio")) histDir := path.Join(dataDir, "history") currPath := path.Join(histDir, deviceID) - // TODO: file extenstion for the history, yes or no? (.reshjson vs. ) + // TODO: file extension for the history, yes or no? (.reshjson vs. ) // TODO: discover other history files, exclude current