Skip to content

Commit 21769f5

Browse files
committed
prevent silent failure
1 parent c0cab57 commit 21769f5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

internal/test/test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,10 @@ func testCode(
205205
if network.Fork != "" {
206206
forkName := strings.ToLower(strings.TrimSpace(network.Fork))
207207
forkNetwork, err := state.Networks().ByName(forkName)
208-
if err == nil && forkNetwork != nil {
209-
host = strings.TrimSpace(forkNetwork.Host)
208+
if err != nil {
209+
return "", false
210210
}
211+
host = strings.TrimSpace(forkNetwork.Host)
211212
}
212213

213214
if host == "" {

0 commit comments

Comments
 (0)