-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify extractOrdererConsensusType
The error that was returned is unnecessary as the function is only used and test and can therefore perform the assertion. The "updated" value was rarely used and getting flagged as an "ineffectual assignment" in linting. Since all the function was doing was cloning the input, the clone was moved to the places where it was necessary. Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
- Loading branch information
Showing
1 changed file
with
28 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters