Skip to content

Commit 8114042

Browse files
committed
explain the wrapper struct in the comment
resolves: EC-1534
1 parent 5ee0284 commit 8114042

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/applicationsnapshot/input.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ func DetermineInputSpec(ctx context.Context, input Input) (*app.SnapshotSpec, *E
183183
}
184184

185185
func readSnapshotSource(input []byte) (app.SnapshotSpec, error) {
186-
// Define a temporary struct to capture the wrapped spec
186+
// Define a temporary struct to capture the wrapped spec so we
187+
// can read snapshot data correctly from a cluster record
187188
var wrapper struct {
188189
Spec *app.SnapshotSpec `yaml:"spec"`
189190
}

0 commit comments

Comments
 (0)