diff options
Diffstat (limited to 'pkg/cheatsheet')
-rw-r--r-- | pkg/cheatsheet/check.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/cheatsheet/check.go b/pkg/cheatsheet/check.go index ebcd0629f..6ee4de21f 100644 --- a/pkg/cheatsheet/check.go +++ b/pkg/cheatsheet/check.go @@ -17,11 +17,11 @@ func Check() { tmpDir := filepath.Join(os.TempDir(), "lazygit_cheatsheet") err := os.RemoveAll(tmpDir) if err != nil { - log.Fatalf("Error occured while checking if cheatsheets are up to date: %v", err) + log.Fatalf("Error occurred while checking if cheatsheets are up to date: %v", err) } err = os.Mkdir(tmpDir, 0o700) if err != nil { - log.Fatalf("Error occured while checking if cheatsheets are up to date: %v", err) + log.Fatalf("Error occurred while checking if cheatsheets are up to date: %v", err) } generateAtDir(tmpDir) @@ -45,7 +45,7 @@ func Check() { Context: 1, }) if err != nil { - log.Fatalf("Error occured while checking if cheatsheets are up to date: %v", err) + log.Fatalf("Error occurred while checking if cheatsheets are up to date: %v", err) } fmt.Printf("\nCheatsheets are out of date. Please run `%s` at the project root and commit the changes\n", CommandToRun()) os.Exit(1) @@ -62,7 +62,7 @@ func obtainContent(dir string) string { if re.MatchString(path) { bytes, err := ioutil.ReadFile(path) if err != nil { - log.Fatalf("Error occured while checking if cheatsheets are up to date: %v", err) + log.Fatalf("Error occurred while checking if cheatsheets are up to date: %v", err) } content += fmt.Sprintf("\n%s\n\n", filepath.Base(path)) content += string(bytes) @@ -71,7 +71,7 @@ func obtainContent(dir string) string { return nil }) if err != nil { - log.Fatalf("Error occured while checking if cheatsheets are up to date: %v", err) + log.Fatalf("Error occurred while checking if cheatsheets are up to date: %v", err) } return content |