Skip to content

Conversation

@ccremer
Copy link
Owner

@ccremer ccremer commented Dec 20, 2021

Summary

  • Renames predicate.WrapIn() to predicate.If()
  • Changes signature of predicate.If(...) so that the parameters are interchanged.

This change makes it easier to read a nested pipeline like

predicate.If(authenticated(), pipeline.NewStepFromFunc("query db", ...))

Checklist

  • Categorize the PR by setting a good title and adding one of the labels:
    fix, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog
  • Update documentation.
  • Update tests.
  • Link this PR to related issues.

@ccremer ccremer merged commit 782ba46 into master Dec 20, 2021
@ccremer ccremer deleted the predicate-if branch December 20, 2021 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants