When logging discrepancies, the code prints the following lists:
UntrackedInRelease
RemovedPostRelease
ModifiedPostRelease
I noticed that RemovedPostRelease and ModifiedPostRelease were always the same, in case of an error. This happened because ModifiedPostRelease was being assigned the value of RemovedPostRelease. If I remove chart A and modify chart B, RemovedPostRelease should contain only chart A, and ModifiedPostRelease should contain only chart B. That wasn't the actual result. The actual result was both lists containing both charts. This modification fixes it.
When logging discrepancies, the code prints the following lists:
I noticed that RemovedPostRelease and ModifiedPostRelease were always the same, in case of an error. This happened because ModifiedPostRelease was being assigned the value of RemovedPostRelease. If I remove chart A and modify chart B, RemovedPostRelease should contain only chart A, and ModifiedPostRelease should contain only chart B. That wasn't the actual result. The actual result was both lists containing both charts. This modification fixes it.