Skip to content

fix: remove appending of descriptions from different markers#56

Merged
lander2k2 merged 3 commits intonukleros:mainfrom
lander2k2:marker-description
Sep 23, 2022
Merged

fix: remove appending of descriptions from different markers#56
lander2k2 merged 3 commits intonukleros:mainfrom
lander2k2:marker-description

Conversation

@lander2k2
Copy link
Contributor

If there are more than two instances of an identical marker with a description, an error will be returned because the descriptions are being appended to one another. So identical markers throw an error indicating they are different if there are > 2 instances of the identical marker. This fix removes the append.

Signed-off-by: Rich Lander lander2k2@protonmail.com

If there are more than two instances of an identical marker with a
description, an error will be returned because the descriptions are
being appended to one another.  So identical markers throw an error
indicating they are different if there are > 2 instances of the
identical marker.  This fix removes the append.

Signed-off-by: Rich Lander <lander2k2@protonmail.com>
@lander2k2 lander2k2 requested a review from scottd018 September 22, 2022 15:18
Previously, the descriptions array was being checked if nil.  However,
the array of strings is never nil.  It's either an empty array or it has
string values in the array.  Therefore, the descriptions were never
added.

Signed-off-by: Rich Lander <lander2k2@protonmail.com>
Signed-off-by: Rich Lander <lander2k2@protonmail.com>
@lander2k2 lander2k2 merged commit 5db1fac into nukleros:main Sep 23, 2022
@lander2k2 lander2k2 deleted the marker-description branch September 23, 2022 20:13
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.

1 participant