-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reflct.PtrTo was deprecated in favor of PointerTo, added in Go 1.18. Join one reflect kind check with the reflect kind switch below, reducing the code by a few lines. Get rid of redundant variables for key, since it is already a string. Thanks to sort.Slice, we no longer need to implement sort.Interface. Signed-off-by: Daniel Martí <[email protected]> Change-Id: I9feb1046b4ec2c7beb04d73ec8dd53df731731d1 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1168614 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information
Showing
1 changed file
with
8 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters