linting
This commit is contained in:
@@ -103,6 +103,7 @@ func listPaymentsPage(r *http.Request) (*paginationv1.CursorPageRequest, error)
|
||||
}
|
||||
|
||||
if cursor == "" && !hasLimit {
|
||||
//nolint:nilnil // Absent pagination params mean no page request should be sent downstream.
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -189,6 +190,7 @@ func firstNonEmpty(values ...string) string {
|
||||
func parseRFC3339Timestamp(raw string, field string) (*timestamppb.Timestamp, error) {
|
||||
trimmed := strings.TrimSpace(raw)
|
||||
if trimmed == "" {
|
||||
//nolint:nilnil // Empty timestamp filter is represented as (nil, nil).
|
||||
return nil, nil
|
||||
}
|
||||
parsed, err := time.Parse(time.RFC3339, trimmed)
|
||||
|
||||
Reference in New Issue
Block a user