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:
parent
4a52c46e37
commit
37dc2582d1
1 changed files with 2 additions and 3 deletions
|
@ -45,9 +45,8 @@ func (av APIVersion) String() string {
|
||||||
|
|
||||||
// API Version identifiers.
|
// API Version identifiers.
|
||||||
const (
|
const (
|
||||||
_ = iota
|
APIVersion1 APIVersion = 1
|
||||||
APIVersion1 APIVersion = iota
|
APIVersion2 APIVersion = 2
|
||||||
APIVersion2
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var apiVersions = map[APIVersion]string{
|
var apiVersions = map[APIVersion]string{
|
||||||
|
|
Loading…
Add table
Reference in a new issue