Skip to content

Commit 5407734

Browse files
aledbfclaude
andcommitted
style: gofmt three files
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 4827573 commit 5407734

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎internal/cli/collection_package_held_test.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,3 @@ func TestPackageTemplateOptionalPathsShape(t *testing.T) {
8686
t.Errorf("collection lacks %s:\n%s", want, got)
8787
}
8888
}
89-

‎internal/cli/image_build_info.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ func (r *dockerfileResolver) replace(baseEnv map[string]string, str string, s *d
351351
b.WriteString(str[last:m[0]])
352352
last = m[1]
353353
value := r.findValue(baseEnv, str[m[2]:m[3]], s, before)
354-
varExp := m[4] // mutate-exempt: m[4] and m[5] are both -1 exactly when the :-word/:+word group is unmatched
354+
varExp := m[4] // mutate-exempt: m[4] and m[5] are both -1 exactly when the :-word/:+word group is unmatched
355355
if varExp != -1 { // ${var:-word} / ${var:+word}
356356
option, word := str[m[6]], str[m[8]:m[9]] // the option is one character, - or +
357357
isSet := value != ""

‎internal/config/types_held_test.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import (
1111
func TestBuildContextPrefersTheLegacyProperty(t *testing.T) {
1212
for in, want := range map[string]string{
1313
`{"dockerFile":"D","context":"legacy","build":{"context":"build"}}`: "legacy",
14-
`{"build":{"context":".."}}`: "..",
15-
`{"build":{"dockerfile":"Dockerfile"}}`: "",
16-
`{}`: "",
14+
`{"build":{"context":".."}}`: "..",
15+
`{"build":{"dockerfile":"Dockerfile"}}`: "",
16+
`{}`: "",
1717
} {
1818
var c DevContainer
1919
if err := json.Unmarshal([]byte(in), &c); err != nil {

0 commit comments

Comments
 (0)