Closed waymobetta closed 3 years ago
I noticed while reviewing the codebase that some errors being returned as well as log statements were written in such a way that was excessive.
Example: log.Info().Msg(fmt.Sprintf("Syncing validators from %s block", block.String()))
log.Info().Msg(fmt.Sprintf("Syncing validators from %s block", block.String()))
This could be rewritten as..
log.Info().Msgf("Syncing validators from %s block", block.String())
This refactoring also removes the need for the errors package to be imported in a few cases.
errors
Closes: N/A
N/A
Go Test coverage is 40.7 %\ :sparkles: :sparkles: :sparkles:
Description
I noticed while reviewing the codebase that some errors being returned as well as log statements were written in such a way that was excessive.
Example:
log.Info().Msg(fmt.Sprintf("Syncing validators from %s block", block.String()))
This could be rewritten as..
log.Info().Msgf("Syncing validators from %s block", block.String())
This refactoring also removes the need for the
errors
package to be imported in a few cases.Related Issue Or Context
Closes: N/A
How Has This Been Tested? Testing details.
N/A
Types of changes
Checklist: