From d5c35ec3b0391df2df0f00821c7fd2287d95871f Mon Sep 17 00:00:00 2001 From: ayntgl Date: Sun, 22 May 2022 21:32:28 +0400 Subject: [PATCH] refactor(config): fix typos --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index f43abc4..075e64b 100644 --- a/config/config.go +++ b/config/config.go @@ -86,7 +86,7 @@ func (c *Config) Load(path string) error { return err } - // If the configuration file does not exist already, create a new file; otherwwise, open the existing file with read-write flag. + // If the configuration file does not exist already, create a new file; otherwise, open the existing file with read-write flag. f, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE, os.ModePerm) if err != nil { return err @@ -98,7 +98,7 @@ func (c *Config) Load(path string) error { return err } - // If the file is empty (the size of the file is zero), write the dedfault configuration to the file. + // If the file is empty (the size of the file is zero), write the default configuration to the file. if fi.Size() == 0 { return toml.NewEncoder(f).Encode(c) }