Skip to content

Conversation

johnsaigle
Copy link
Contributor

  • Pass a testing instance to the set-up function and exit early on nil/err conditions rather than making each individual test perform this action

- Pass a testing instance to the set-up function and exit early on
  nil/err conditions rather than making each individual test perform
  this action
@johnsaigle johnsaigle added governor quality doesn't fix a known bug, doesn't change behavior, but increase code quality test labels Jul 11, 2025
@johnsaigle johnsaigle marked this pull request as ready for review July 11, 2025 18:11
gov := NewChainGovernor(logger, &db, common.GoTest, true, "")

err := gov.Run(ctx)
if err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove the if statements for all of these now where you're calling into require.NoError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
governor quality doesn't fix a known bug, doesn't change behavior, but increase code quality test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants