Skip to content

Commit

Permalink
chore: simplify conditional
Browse files Browse the repository at this point in the history
Related cda7e01
Related skuid#233
  • Loading branch information
techfg committed Oct 11, 2024
1 parent 681160e commit 722912b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/retrieve.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func validateSince(planFilter *NlxPlanFilter, plans *NlxPlans) error {
return nil
}

if plan.Since == nil && since != nil || plan.Since != nil && since == nil || !plan.Since.Equal(*since) {
if plan.Since == nil || since == nil || !plan.Since.Equal(*since) {
return fmt.Errorf("plan %v since value %v did not match plan filter since value %v, %v", logging.QuoteText(plan.Name), logging.QuoteText(logging.FormatTime(plan.Since)), logging.QuoteText(logging.FormatTime(since)), logging.FileAnIssueText)
}
return nil
Expand Down

0 comments on commit 722912b

Please sign in to comment.