Skip to content

Commit

Permalink
use time.Equal
Browse files Browse the repository at this point in the history
  • Loading branch information
moshe-blox committed Jan 21, 2025
1 parent d4c4e1e commit eb8a3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon/goclient/goclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func sameGenesis(a, b *apiv1.Genesis) error {
return fmt.Errorf("genesis is nil")
}

Check warning on line 291 in beacon/goclient/goclient.go

View check run for this annotation

Codecov / codecov/patch

beacon/goclient/goclient.go#L288-L291

Added lines #L288 - L291 were not covered by tests

if a.GenesisTime != b.GenesisTime {
if !a.GenesisTime.Equal(b.GenesisTime) {
return fmt.Errorf("genesis time mismatch, got %v and %v", a.GenesisTime, b.GenesisTime)
}

Check warning on line 295 in beacon/goclient/goclient.go

View check run for this annotation

Codecov / codecov/patch

beacon/goclient/goclient.go#L293-L295

Added lines #L293 - L295 were not covered by tests

Expand Down

0 comments on commit eb8a3a1

Please sign in to comment.