Skip to content

Commit

Permalink
Compact template
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Pollett authored and ernesto-jimenez committed Jun 9, 2018
1 parent 6c9d18a commit 89226b8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions require/require.go.tmpl
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{{.Comment}}
func {{.DocInfo.Name}}(t TestingT, {{.Params}}) {
if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) {
return
}
if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return }
if h, ok := t.(tHelper); ok { h.Helper() }
t.FailNow()
}

0 comments on commit 89226b8

Please sign in to comment.