ChainSafe / chainbridge-celo

GNU Lesser General Public License v3.0
3 stars 2 forks source link

Refactor errors and log statements #115

Closed waymobetta closed 3 years ago

waymobetta commented 3 years ago

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:

github-actions[bot] commented 3 years ago

Go Test coverage is 40.7 %\ :sparkles: :sparkles: :sparkles:

github-actions[bot] commented 3 years ago

Go Test coverage is 40.7 %\ :sparkles: :sparkles: :sparkles: