mirror of https://github.com/docker/docs.git
Fix mispelling of 'occur'
Signed-off-by: Ying Li <ying.li@docker.com>
This commit is contained in:
parent
d0256e2244
commit
d45b9f86ef
|
@ -235,7 +235,7 @@ func generateSnapshot(gun string, repo *tuf.Repo, store storage.MetaStore) (*sto
|
||||||
return nil, validation.ErrValidation{Msg: err.Error()}
|
return nil, validation.ErrValidation{Msg: err.Error()}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// this will only occurr if no snapshot has ever been created for the repository
|
// this will only occur if no snapshot has ever been created for the repository
|
||||||
err := repo.InitSnapshot()
|
err := repo.InitSnapshot()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, validation.ErrBadSnapshot{Msg: err.Error()}
|
return nil, validation.ErrBadSnapshot{Msg: err.Error()}
|
||||||
|
|
Loading…
Reference in New Issue