Cleanup lint warnings

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-06-12 16:25:55 +02:00
parent 00385acc1d
commit 82eb7786d4
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -926,7 +926,7 @@ var stateComputeStateCmd = &cli.Command{
return c.Code, nil
}
return computeStateHtmlT(ts, stout, getCode)
return computeStateHTMLTempl(ts, stout, getCode)
}
fmt.Println("computed state cid: ", stout.Root)
@ -1044,12 +1044,12 @@ var compStateMsg = `
{{end}}
</div>`
type compStateHtmlIn struct {
type compStateHTMLIn struct {
TipSet *types.TipSet
Comp *api.ComputeStateOutput
}
func computeStateHtmlT(ts *types.TipSet, o *api.ComputeStateOutput, getCode func(addr address.Address) (cid.Cid, error)) error {
func computeStateHTMLTempl(ts *types.TipSet, o *api.ComputeStateOutput, getCode func(addr address.Address) (cid.Cid, error)) error {
t, err := template.New("compute_state").Funcs(map[string]interface{}{
"GetCode": getCode,
"GetMethod": getMethod,
@ -1071,7 +1071,7 @@ func computeStateHtmlT(ts *types.TipSet, o *api.ComputeStateOutput, getCode func
return err
}
return t.ExecuteTemplate(os.Stdout, "compute_state", &compStateHtmlIn{
return t.ExecuteTemplate(os.Stdout, "compute_state", &compStateHTMLIn{
TipSet: ts,
Comp: o,
})