philhanna / go-ncvoters

Downloads selected columns from the NC voter registration URL and creates an SQLite database from it
MIT License
0 stars 0 forks source link

Simplify `CreateDatabase` mainline #9

Closed philhanna closed 9 months ago

philhanna commented 1 year ago

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

create/database.go Line 12: warning: cyclomatic complexity 16 of function CreateDatabase() is high (> 15) (gocyclo)