Skip to content

fix: correct operation order in calculate function#1

Open
vianneybacoup wants to merge 2 commits into
mainfrom
example_pr
Open

fix: correct operation order in calculate function#1
vianneybacoup wants to merge 2 commits into
mainfrom
example_pr

Conversation

@vianneybacoup

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the calculate() helper in pyapp’s simple math CLI to change which operation is treated as the default branch.

Changes:

  • Switched the conditional in calculate() to check "sub" first and default to addition otherwise.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pyapp/app.py Outdated
Comment thread pyapp/app.py Outdated
@raudrain

raudrain commented Apr 2, 2026

Copy link
Copy Markdown
Collaborator

Good for me

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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