contractcourt: fix linter funlen
Refactor the `Start` method to fix the linter error: ``` contractcourt/chain_arbitrator.go:568: Function 'Start' is too long (242 > 200) (funlen) ```
This commit is contained in:
2 files changed
+151
-123
No files matched your search
@@ -165,6 +165,10 @@ func (c *commitSweepResolver) getCommitTxConfHeight() (uint32, error) {
|
||||
// returned.
|
||||
//
|
||||
// NOTE: This function MUST be run as a goroutine.
|
||||
|
||||
// TODO(yy): fix the funlen in the next PR.
|
||||
//
|
||||
//nolint:funlen
|
||||
func (c *commitSweepResolver) Resolve() (ContractResolver, error) {
|
||||
// If we're already resolved, then we can exit early.
|
||||
if c.resolved {
|
||||
|
||||
Reference in new issue
Block a user