chore: fix a bunch of issues caught by golangci-lint
Steven Allen authored
Most of these are probably harmless but a few looked like they might actually be
bugs. Most of them are just faulty tests.

License: MIT
Signed-off-by: default avatarSteven Allen <steven@stebalien.com>
1f293eff