|
Before Width: | Height: | Size: 147 KiB After Width: | Height: | Size: 153 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 65 KiB |
@@ -26,10 +26,6 @@ type transformationKeyer interface {
|
||||
func (spec *Spec) PostProcess(r resource.Resource) (postpub.PostPublishedResource, error) {
|
||||
key := r.(transformationKeyer).TransformationKey()
|
||||
return spec.PostProcessResources.GetOrCreate(key, func() (postpub.PostPublishedResource, error) {
|
||||
result := postpub.NewPostPublishResource(spec.incr.Incr(), r)
|
||||
if result == nil {
|
||||
panic("got nil result")
|
||||
}
|
||||
return result, nil
|
||||
return postpub.NewPostPublishResource(spec.incr.Incr(), r), nil
|
||||
})
|
||||
}
|
||||
|
||||