mirror of
https://github.com/docker/cli.git
synced 2026-08-30 18:14:19 -05:00
5bf8eb95362b0980b55d1823581eeff98071f65d
Currently, if the service mode is not "global", this code assumes that Replicated is non-nil. This assumption may not be true in the future. Instead of making the assumption, explicitly check that Replicated is non-nil before using it. Similarly, for limits and reservations, enclose methods that read from Limits and Reservations within checks that those fields are non-nil. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> Upstream-commit: 02cc464e1ab0a8fcebfd10db95bcde654d901391 Component: engine
Languages
Go
92.3%
Shell
5.4%
Dockerfile
1.1%
Go-Checksums
0.7%
Makefile
0.3%
Other
0.2%