Skip to content

BugFix: correct merge error from #4604#4693

Merged
SlySven merged 1 commit intoMudlet:developmentfrom
SlySven:BugFix_correctMergeErrorFrom#4604
Jan 26, 2021
Merged

BugFix: correct merge error from #4604#4693
SlySven merged 1 commit intoMudlet:developmentfrom
SlySven:BugFix_correctMergeErrorFrom#4604

Conversation

@SlySven
Copy link
Copy Markdown
Member

@SlySven SlySven commented Jan 26, 2021

Due to some differences in local variable names I did not spot that I was introducing two copies of the same functional code into the method that scanned the existing map file in other inactive profiles for when a new shared map was copied over to them. As such the code (in (bool) TMap::retrieveMapFileStats(...) would not have been used very much in the last couple of weeks when it was in the development branch code and even then it may not have prevented the current usage of that method from having functioned correctly. Nevertheless it is defective as it is and this PR removes one copy of the duplicated code.

Signed-off-by: Stephen Lyons slysven@virginmedia.com

Due to some differences in local variable names I did not spot that I was
introducing two copies of the same functional code into the method that
scanned the existing map file in other inactive profiles for when a new
shared map was copied over to them. As such the code (in
`(bool) TMap::retrieveMapFileStats(...)` would not have been used very
much in the last couple of weeks when it was in the development branch code
and even then it may not have prevented the current usage of that method
from having functioned correctly. Nevertheless it is defective as it is
and this PR removes one copy of the duplicated code.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
@SlySven SlySven requested a review from a team as a code owner January 26, 2021 20:08
@SlySven SlySven requested a review from a team January 26, 2021 20:08
@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Jan 26, 2021

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

SlySven added a commit to SlySven/Mudlet that referenced this pull request Jan 26, 2021
…sion

In creating Mudlet#4693 I chose the opposite duplicate chunk of code that I was
using in this PR - since there was slight differences it would have
impacted when this PR is merged.

This commit swaps things so that it uses the same code as will be in
the development branch in the near future.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
@SlySven SlySven merged commit f32e0fe into Mudlet:development Jan 26, 2021
@SlySven SlySven deleted the BugFix_correctMergeErrorFrom#4604 branch January 26, 2021 20:38
Chris7 pushed a commit to Chris7/Mudlet that referenced this pull request Jan 2, 2022
Due to some differences in local variable names I did not spot that I was
introducing two copies of the same functional code into the method that
scanned the existing map file in other inactive profiles for when a new
shared map was copied over to them. As such the code (in
`(bool) TMap::retrieveMapFileStats(...)` would not have been used very
much in the last couple of weeks when it was in the development branch code
and even then it may not have prevented the current usage of that method
from having functioned correctly. Nevertheless it is defective as it is
and this PR removes one copy of the duplicated code.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
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