Skip to content

Commit

Permalink
Fixing linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
samlown committed Oct 25, 2024
1 parent e80e161 commit da3c6b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 1 addition & 6 deletions addons/de/xrechnung/xrechnung.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,10 @@ func newAddon() *tax.AddonDef {
For more information on XRechnung, visit [www.xrechnung.de](https://www.xrechnung.de/).
`),
},
Normalizer: normalize,
Validator: validate,
Validator: validate,
}
}

func normalize(doc any) {
// nothing to normalize yet
}

func validate(doc any) error {
switch obj := doc.(type) {
case *bill.Invoice:
Expand Down
3 changes: 2 additions & 1 deletion tax/extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ func (v validateExtCodeMap) Validate(value interface{}) error {
return nil
}

// ExtensionsHasValues
// ExtensionsHasValues returns a validation rule that ensures the extension map's
// key has one of the provided **values**.
func ExtensionsHasValues(key cbc.Key, values ...ExtValue) validation.Rule {
return validateExtCodeValues{
key: key,
Expand Down

0 comments on commit da3c6b1

Please sign in to comment.