From d6987ee05be8b5da279e530cfd65512cb903c72b Mon Sep 17 00:00:00 2001 From: Atin <61903527+atin@users.noreply.github.com> Date: Wed, 19 May 2021 10:42:09 +0530 Subject: chore: fix typos in code comments (#6556) --- internal/conf/computed.go | 6 +++--- internal/conf/log.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/conf') diff --git a/internal/conf/computed.go b/internal/conf/computed.go index 64eb322d..95acf64f 100644 --- a/internal/conf/computed.go +++ b/internal/conf/computed.go @@ -53,7 +53,7 @@ var ( workDirOnce sync.Once ) -// WorkDir returns the absolute path of work directory. It reads the value of envrionment +// WorkDir returns the absolute path of work directory. It reads the value of environment // variable GOGS_WORK_DIR. When not set, it uses the directory where the application's // binary is located. func WorkDir() string { @@ -75,8 +75,8 @@ var ( ) // CustomDir returns the absolute path of the custom directory that contains local overrides. -// It reads the value of envrionment variable GOGS_CUSTOM. When not set, it uses the work -// directory returned by WorkDir fucntion. +// It reads the value of environment variable GOGS_CUSTOM. When not set, it uses the work +// directory returned by WorkDir function. func CustomDir() string { customDirOnce.Do(func() { customDir = os.Getenv("GOGS_CUSTOM") diff --git a/internal/conf/log.go b/internal/conf/log.go index e6865a41..bde739df 100644 --- a/internal/conf/log.go +++ b/internal/conf/log.go @@ -32,7 +32,7 @@ var Log *logConf // argument "hookMode" is true, it only initializes the root path for log files. // NOTE: Because we always create a console logger as the primary logger at init time, // we need to remove it in case the user doesn't configure to use it after the logging -// service is initalized. +// service is initialized. func initLogConf(cfg *ini.File, hookMode bool) (_ *logConf, hasConsole bool, _ error) { rootPath := cfg.Section("log").Key("ROOT_PATH").MustString(filepath.Join(WorkDir(), "log")) if hookMode { -- cgit v1.2.3