Skip to content

Commit

Permalink
Remove unnecessary local variable (ava-labs#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrubabasu authored May 6, 2022
1 parent e6bb1b2 commit 92a1bb0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions snow/validators/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ func NewValidator(

// GenerateRandomValidator creates a random validator with the provided weight
func GenerateRandomValidator(weight uint64) Validator {
nodeID := ids.GenerateTestNodeID()
return NewValidator(
nodeID,
ids.GenerateTestNodeID(),
weight,
)
}

0 comments on commit 92a1bb0

Please sign in to comment.