Skip to content

Commit

Permalink
rm stupid if
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan committed Oct 17, 2024
1 parent 51fc8eb commit e050758
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions modules/core/04-channel/v2/types/packet.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package types

import (
"math"
"strings"
"time"

Expand Down Expand Up @@ -89,9 +88,5 @@ func (p Payload) Validate() error {

// TimeoutTimestampToNanos takes seconds as a uint64 and returns Unix nanoseconds as uint64.
func TimeoutTimestampToNanos(seconds uint64) uint64 {
if seconds >= math.MaxInt64 {

}

return uint64(time.Unix(int64(seconds), 0).UnixNano())
}

0 comments on commit e050758

Please sign in to comment.