Skip to content

Commit 207b159

Browse files
committed
tighter
1 parent 3cb8d4a commit 207b159

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

typewriters/container/container.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ func (c *ContainerWriter) Validate(t typewriter.Type) (bool, error) {
3838
// must include at least one item that we recognize
3939
any := false
4040
for _, item := range tag.Items {
41-
any = any || templates.Contains(item)
42-
if any {
41+
if templates.Contains(item) {
4342
// found one, move on
43+
any = true
4444
break
4545
}
4646
}

0 commit comments

Comments
 (0)