Skip to content

Commit

Permalink
fix: fix linter issue v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrkazik99 committed Sep 4, 2024
1 parent e294ffd commit fae3f36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mosaic/builder/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type MinimumScaleSize struct {

func NewMinimumScaleSize(value Size) (*MinimumScaleSize, error) {
if !IsValidSize(value) {
return nil, fmt.Errorf((MinimumScaleSize{}).GetAcceptanceCriteria())
return nil, errors.New((MinimumScaleSize{}).GetAcceptanceCriteria())
}
return &MinimumScaleSize{Value: value}, nil
}
Expand Down Expand Up @@ -86,7 +86,7 @@ type ScaleDownPercentage struct {
func NewScaleDownPercentage(value uint16) (*ScaleDownPercentage, error) {
s := &ScaleDownPercentage{Value: value}
if !s.isValid() {
return nil, fmt.Errorf(s.GetAcceptanceCriteria())
return nil, errors.New(s.GetAcceptanceCriteria())
}
return s, nil
}
Expand Down Expand Up @@ -130,7 +130,7 @@ type TileSize struct {
func NewTileSize(value Size) (*TileSize, error) {
t := &TileSize{Value: value}
if !t.IsValid() {
return nil, fmt.Errorf(t.GetAcceptanceCriteria())
return nil, errors.New(t.GetAcceptanceCriteria())
}
return t, nil
}
Expand Down

0 comments on commit fae3f36

Please sign in to comment.