Skip to content

Commit

Permalink
Fixes spelling
Browse files Browse the repository at this point in the history
Signed-off-by: hohmannr <[email protected]>
  • Loading branch information
hohmannr committed Jul 11, 2023
1 parent ffc7a42 commit 6e6efc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ func (c *Config) subPackages(
return nil
})
if walkErr != nil {
return nil, fmt.Errorf("error occured during filesystem walk: %w", walkErr)
return nil, fmt.Errorf("error occurred during filesystem walk: %w", walkErr)

Check warning on line 515 in pkg/config/config.go

View check run for this annotation

Codecov / codecov/patch

pkg/config/config.go#L515

Added line #L515 was not covered by tests
}

// Parse the subdirectories we found into their respective fully qualified
Expand Down
4 changes: 2 additions & 2 deletions pkg/outputter.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/vektra/mockery/v2/pkg/stackerr"
)

var ErrInfiniteLoop = fmt.Errorf("infintie loop in template variables detected")
var ErrInfiniteLoop = fmt.Errorf("infinite loop in template variables detected")

// Functions available in the template for manipulating
//
Expand Down Expand Up @@ -238,7 +238,7 @@ func parseConfigTemplates(ctx context.Context, c *config.Config, iface *Interfac
changesMade := true
for changesMade {
if numIterations >= 20 {
msg := "infintie loop in template variables detected"
msg := "infinite loop in template variables detected"
log.Error().Msg(msg)
for key, val := range templateMap {
l := log.With().Str("variable-name", key).Str("variable-value", *val).Logger()
Expand Down

0 comments on commit 6e6efc2

Please sign in to comment.