8e87df7fd3063a81c34bef6956bf203afd4c9de3
The current implementation of getRefs is a bit fragile. It returns a slice to callers without copying its contents, and assumes the contents will not be modified elsewhere. Also, the current implementation of Dereference requires copying the slice of references, excluding the one we wish to remove. To improve both of these things, change refs to be a map of maps. Deleting an item becomes trivial, and returning a slice of references necessitates copying from the map. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> Upstream-commit: a762222396d21990b2c0772300660312e7a58b6c Component: engine
Description
No description provided
Languages
Go
92%
Shell
5.5%
Dockerfile
1.1%
Go-Checksums
0.9%
Makefile
0.3%
Other
0.2%