mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
Update src/cmd/utils/author_file_utils.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -40,7 +40,7 @@ func CheckAuthorFile() string {
|
||||
cocommit_folder = strings.Join(parts[:len(parts)-1], "/")
|
||||
|
||||
// create the author file
|
||||
if os.Stat(cocommit_folder); os.IsNotExist(err) {
|
||||
if _, dirErr := os.Stat(cocommit_folder); os.IsNotExist(dirErr) {
|
||||
err := os.Mkdir(cocommit_folder, 0766)
|
||||
if err != nil {
|
||||
fmt.Println("Error creating directory: ", err, cocommit_folder)
|
||||
|
||||
Reference in New Issue
Block a user