Skip to content

Commit

Permalink
Go fmt; enhanced init-checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
flosch committed Oct 15, 2012
1 parent 4fecfb0 commit 32724a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion expr.go
Expand Up @@ -125,7 +125,7 @@ func resolveIdent(name exprIdent, ctx *Context) (interface{}, error) {
}
}
}

// Check for a pointer in rv and resolve it
rv = resolvePointer(rv)

Expand Down
4 changes: 2 additions & 2 deletions tags.go
Expand Up @@ -39,11 +39,11 @@ func init() {
// Workaround, to fix the 'initialization loop' compiler error
// First check whether there is any extends/include entry in Tags
// since it could be removed by the user.
if _, has_extends := Tags["extends"]; has_extends {
if tag, has_extends := Tags["extends"]; has_extends && tag.Execute == nil && tag.Prepare == nil {
Tags["extends"].Prepare = tagExtendsPrepare
Tags["extends"].Execute = tagExtends
}
if _, has_include := Tags["include"]; has_include {
if tag, has_include := Tags["include"]; has_include && tag.Execute == nil && tag.Prepare == nil {
Tags["include"].Prepare = tagIncludePrepare
Tags["include"].Execute = tagInclude
}
Expand Down

0 comments on commit 32724a1

Please sign in to comment.