Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subtract transformation #1464

Merged
merged 4 commits into from
Sep 8, 2022
Merged

subtract transformation #1464

merged 4 commits into from
Sep 8, 2022

Conversation

ian-j-abbott-accenture
Copy link
Contributor

Ticket Link #554

Description

  • Implement subtract transformation

Reminders:

  • [ X] If changing elixir code in an "app", did you update the relevant version
    in mix.exs?

@@ -4,7 +4,7 @@ defmodule Transformers.MixProject do
def project do
[
app: :transformers,
version: "1.0.2",
version: "1.0.4",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jumping straight to 4 assuming the multiplication PR will go out before ours

defp subtractValues(minuend, subtrahends, payload) do
minuendValue = Map.get(payload, minuend, minuend)

if is_number(minuendValue) do
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can likely be cleaned up if we have a validate_parameters and validate_payload in the future.

@ian-j-abbott-accenture ian-j-abbott-accenture merged commit 4363356 into master Sep 8, 2022
@ian-j-abbott-accenture ian-j-abbott-accenture deleted the 554-subtract branch September 8, 2022 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants