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

Check for negative value when printing prompt connection #121

Merged
merged 3 commits into from
Mar 10, 2021

Conversation

mfossen
Copy link
Contributor

@mfossen mfossen commented Mar 10, 2021

Description

applies to issue #120

Check for a negative value before printing prompt connection to avoid issues with string repeat.

Motivation and Context

Closes #120

Screenshots (if appropriate)

How Has This Been Tested

  • I have tested using Linux.
  • I have tested using MacOS.

This looks like it fixes the issue when I add it on both Linux and MacOS.

Checklist

  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.

@IlanCosman
Copy link
Owner

Thanks for opening this PR! Great bug catch 😄 It's probably simpler to use abs in the math expression instead. Could you do that?

@IlanCosman
Copy link
Owner

Oh wait, that was stupid of me, let me test if that even works 😅

@IlanCosman
Copy link
Owner

Yah no that was just me being an idiot, your way is right 😂 I'll get this merged.

@mfossen
Copy link
Contributor Author

mfossen commented Mar 10, 2021

Yah no that was just me being an idiot, your way is right joy I'll get this merged.

No worries! Thought I missed something as well and tested it just in case 👍

@IlanCosman
Copy link
Owner

gah CI being annoying, gotta get that fixed first :(

@IlanCosman IlanCosman enabled auto-merge (squash) March 10, 2021 19:40
@IlanCosman IlanCosman merged commit d2e6721 into IlanCosman:main Mar 10, 2021
@IlanCosman
Copy link
Owner

Thanks for contributing @mfossen 😄

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Negative value error in string repeat using prompt connections with long paths
2 participants