Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue/errors: remove redundant Sort call in list.sanitize
While looking at error handling code, I noticed that error list is being sorted twice when searching for duplicates: once in sanitize, and again in RemoveMultiples immediately after. One Sort call is enough. Closes #2233 as merged as of commit 92b901a. Signed-off-by: Anton Rychkov <zeithaste@gmail.com> Change-Id: I18f8a02651e792131022e38fd870792d6bdaa33f Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/552133 Unity-Result: CUEcueckoo <cueckoo@cuelang.org> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Roger Peppe <rogpeppe@gmail.com> Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
- Loading branch information