Skip to content

Commit

Permalink
rename containerTemplates
Browse files Browse the repository at this point in the history
  • Loading branch information
clipperhouse committed Jun 28, 2014
1 parent 5b98b62 commit 3cb8d4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions typewriters/container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (c *ContainerWriter) Validate(t typewriter.Type) (bool, error) {
// must include at least one item that we recognize
any := false
for _, item := range tag.Items {
any = any || containerTemplates.Contains(item)
any = any || templates.Contains(item)
if any {
// found one, move on
break
Expand Down Expand Up @@ -117,7 +117,7 @@ func (c *ContainerWriter) WriteBody(w io.Writer, t typewriter.Type) {
tag := c.tagsByType[t.String()] // validated above

for _, s := range tag.Items {
tmpl, err := containerTemplates.Get(s) // validate above to avoid err check here?
tmpl, err := templates.Get(s) // validate above to avoid err check here?
if err != nil {
continue
}
Expand Down
2 changes: 1 addition & 1 deletion typewriters/container/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/clipperhouse/gen/typewriter"
)

var containerTemplates = typewriter.TemplateSet{
var templates = typewriter.TemplateSet{

"List": &typewriter.Template{
Text: `
Expand Down

0 comments on commit 3cb8d4a

Please sign in to comment.