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

Replace tail call recursion with loop #4681

Merged
merged 1 commit into from Mar 28, 2018

Conversation

drewnoakes
Copy link
Member

Changes proposed in this pull request:

  • Replace two instance of tail-call recursion with iteration

What did I do to test the code and ensure quality:

  • Manual review and testing

Has been tested on:

  • GIT 2.16
  • Windows 10

@codecov
Copy link

codecov bot commented Mar 20, 2018

Codecov Report

Merging #4681 into master will increase coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #4681      +/-   ##
==========================================
+ Coverage   28.23%   28.23%   +<.01%     
==========================================
  Files         511      511              
  Lines       41082    41081       -1     
  Branches     5938     5938              
==========================================
  Hits        11598    11598              
+ Misses      28966    28965       -1     
  Partials      518      518
Impacted Files Coverage Δ
GitUI/GitUIExtensions.cs 0% <0%> (ø) ⬆️
GitUI/Plugin/LoadPlugins.cs 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9d0c04...205855c. Read the comment docs.

if (arg.InnerException != null)
exceptionInfo += e.Message + "\r\n";

if (e.InnerException != null)
Copy link
Member

Choose a reason for hiding this comment

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

I would invert it to increase readability

@RussKie RussKie added this to the 3.00 milestone Mar 20, 2018
@RussKie RussKie added the ready label Mar 21, 2018
@drewnoakes drewnoakes force-pushed the iteration branch 4 times, most recently from 088b18b to 889e773 Compare March 22, 2018 20:33
@drewnoakes drewnoakes merged commit 86c0f3e into gitextensions:master Mar 28, 2018
@drewnoakes drewnoakes deleted the iteration branch March 28, 2018 08:49
@drewnoakes drewnoakes removed the ready label Mar 28, 2018
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.

None yet

3 participants