Skip to content

Commit

Permalink
fix: lints errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sshaplygin committed Jan 6, 2024
1 parent 2693df0 commit eb4b514
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions parser/fns/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func main() {
checkErr(err)
}()

fmt.Println("package main", "\n")
fmt.Println("var SupportedTaxDepartments = map[ConstitutionRegionCode]TaxDepart{")

scanner := bufio.NewScanner(file)
Expand All @@ -45,7 +44,6 @@ func main() {
if err != nil {
var output string
if nextRegion {
//fmt.Println("},")
output += "Name: "
}
fmt.Println(output + "`" + row + "`,")
Expand Down
2 changes: 1 addition & 1 deletion utils/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func CodeToInts(code int) []int {
for code > 0 {
digit := code % 10
res = append([]int{digit}, res...)
code = code / 10
code /= 10
}

return res
Expand Down
3 changes: 2 additions & 1 deletion validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func Test_Validate(t *testing.T) {

func Test_Validate_Unsupported(t *testing.T) {
require.Panics(t, func() {
Validate(DocType(100500), "100500")
_, err := Validate(DocType(100500), "100500")
require.NoError(t, err)
})
}

0 comments on commit eb4b514

Please sign in to comment.