golangci-lint identifies a few errors with the current code (mostly unchecked errors). We should fix these and add a CI action to enforce this.