Skip to content

Commit

Permalink
fix: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Alok committed Aug 13, 2024
1 parent 6257bfe commit ab10db8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,3 @@ jobs:
- go-modules
- foundry
- contracts

12 changes: 8 additions & 4 deletions testing/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ var (
Required: true,
EnvVars: []string{"MEV_COMMIT_TEST_SETTLEMENT_RPC_ENDPOINT"},
Action: func(_ *cli.Context, s string) error {
_, err := url.Parse(s)
return fmt.Errorf("invalid settlement RPC endpoint: %w", err)
if _, err := url.Parse(s); err != nil {
return fmt.Errorf("invalid settlement RPC endpoint: %w", err)
}
return nil
},
}

Expand All @@ -32,8 +34,10 @@ var (
Required: true,
EnvVars: []string{"MEV_COMMIT_TEST_L1_RPC_ENDPOINT"},
Action: func(_ *cli.Context, s string) error {
_, err := url.Parse(s)
return fmt.Errorf("invalid L1 RPC endpoint: %w", err)
if _, err := url.Parse(s); err != nil {
return fmt.Errorf("invalid L1 RPC endpoint: %w", err)
}
return nil
},
}

Expand Down

0 comments on commit ab10db8

Please sign in to comment.