Skip to content

Commit

Permalink
(fix) Added a default case in the LoadNetwork switch as suggested in …
Browse files Browse the repository at this point in the history
…the PR review
  • Loading branch information
aarmoa committed Jun 6, 2024
1 parent ce23fb7 commit 0a1185e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/common/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,10 @@ func LoadNetwork(name string, node string) Network {
ExplorerCookieAssistant: explorerCookieAssistant,
OfficialTokensListUrl: MainnetTokensListUrl,
}
}

return Network{}
default:
panic(fmt.Sprintf("invalid network %s", name))
}
}

// NewNetwork returns a new Network instance with all cookie assistants disabled.
Expand Down

0 comments on commit 0a1185e

Please sign in to comment.