diff options
author | Phil Davis <phil@jankaritech.com> | 2020-12-16 16:56:32 +0545 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-16 12:11:32 +0100 |
commit | 04b89857e104ac7dcbf9fc65d8d4f1a1178123e6 (patch) | |
tree | 585bf761f0a1cfc69dffcd8afd22e94ca9da7c07 /resources/transform.go | |
parent | 21fa1e86f2aa929fb0983a0cc3dc4e271ea1cc54 (diff) |
all: Fix minor typos
Diffstat (limited to 'resources/transform.go')
-rw-r--r-- | resources/transform.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/transform.go b/resources/transform.go index d995bb46b..a9ec84671 100644 --- a/resources/transform.go +++ b/resources/transform.go @@ -105,7 +105,7 @@ type ResourceTransformationCtx struct { // to be simple types, as it needs to be serialized to JSON and back. Data map[string]interface{} - // This is used to publis additional artifacts, e.g. source maps. + // This is used to publish additional artifacts, e.g. source maps. // We may improve this. OpenResourcePublisher func(relTargetPath string) (io.WriteCloser, error) } @@ -479,7 +479,7 @@ func (r *resourceAdapter) transform(publish, setContent bool) error { publishwriters = append(publishwriters, metaw) } - // Any transofrmations reading from From must also write to To. + // Any transformations reading from From must also write to To. // This means that if the target buffer is empty, we can just reuse // the original reader. if b, ok := tctx.To.(*bytes.Buffer); ok && b.Len() > 0 { @@ -587,7 +587,7 @@ type transformationUpdate struct { startCtx ResourceTransformationCtx } -func (u *transformationUpdate) isContenChanged() bool { +func (u *transformationUpdate) isContentChanged() bool { return u.content != nil || u.sourceFilename != nil } |