1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

registry: remove use of iota for consts

I think it's a bit more readable to just use a literal value
for these; this also prevents having to use `_` to skip zero.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2021-10-05 21:14:17 +02:00
parent 4a52c46e37
commit 37dc2582d1
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -45,9 +45,8 @@ func (av APIVersion) String() string {
// API Version identifiers.
const (
_ = iota
APIVersion1 APIVersion = iota
APIVersion2
APIVersion1 APIVersion = 1
APIVersion2 APIVersion = 2
)
var apiVersions = map[APIVersion]string{