Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mesuutt committed May 24, 2023
1 parent 0322040 commit 4b5f5d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/commit/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func NewGenerator(configPath string) Generator {
}

func (f Generator) GenCommit(stat *FileStat) Commit {
ext := f.findRealExtention(stat)
ext := f.findRealExtension(stat)
filename := fmt.Sprintf("log.%s", ext)

// handle files without extension. eg: Makefile, Dockerfile etc
Expand Down Expand Up @@ -107,7 +107,7 @@ func (f Generator) buildMessage(stat *FileStat) (string, error) {
return fmt.Sprintf(defaultCommitFormat, stat.Insert, stat.Delete), nil
}

func (f Generator) findRealExtention(stat *FileStat) string {
func (f Generator) findRealExtension(stat *FileStat) string {
searchExt := f.removeDot(stat.Ext)

for typ, aliases := range f.conf.Aliases {
Expand Down

0 comments on commit 4b5f5d2

Please sign in to comment.