Fix typo in manifestLayers variable name

Signed-off-by: Andrew Leung <anwleung@gmail.com>
This commit is contained in:
Andrew Leung 2018-07-29 07:53:33 -07:00
parent 276fdce3d9
commit 54aef6251e

View file

@ -13,7 +13,7 @@ import (
type bridge struct { type bridge struct {
ub URLBuilder ub URLBuilder
manfiestLayers bool manifestLayers bool
actor ActorRecord actor ActorRecord
source SourceRecord source SourceRecord
request RequestRecord request RequestRecord
@ -35,7 +35,7 @@ type URLBuilder interface {
func NewBridge(ub URLBuilder, source SourceRecord, actor ActorRecord, request RequestRecord, sink Sink, manifestLayers bool) Listener { func NewBridge(ub URLBuilder, source SourceRecord, actor ActorRecord, request RequestRecord, sink Sink, manifestLayers bool) Listener {
return &bridge{ return &bridge{
ub: ub, ub: ub,
manfiestLayers: manifestLayers, manifestLayers: manifestLayers,
actor: actor, actor: actor,
source: source, source: source,
request: request, request: request,
@ -146,7 +146,7 @@ func (b *bridge) createManifestEvent(action string, repo reference.Named, sm dis
event.Target.Length = desc.Size event.Target.Length = desc.Size
event.Target.Size = desc.Size event.Target.Size = desc.Size
event.Target.Digest = desc.Digest event.Target.Digest = desc.Digest
if b.manfiestLayers { if b.manifestLayers {
event.Target.Layers = append(event.Target.Layers, manifest.References()...) event.Target.Layers = append(event.Target.Layers, manifest.References()...)
} }