Cleanup lint warnings
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
00385acc1d
commit
82eb7786d4
@ -926,7 +926,7 @@ var stateComputeStateCmd = &cli.Command{
|
|||||||
return c.Code, nil
|
return c.Code, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return computeStateHtmlT(ts, stout, getCode)
|
return computeStateHTMLTempl(ts, stout, getCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("computed state cid: ", stout.Root)
|
fmt.Println("computed state cid: ", stout.Root)
|
||||||
@ -1044,12 +1044,12 @@ var compStateMsg = `
|
|||||||
{{end}}
|
{{end}}
|
||||||
</div>`
|
</div>`
|
||||||
|
|
||||||
type compStateHtmlIn struct {
|
type compStateHTMLIn struct {
|
||||||
TipSet *types.TipSet
|
TipSet *types.TipSet
|
||||||
Comp *api.ComputeStateOutput
|
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{}{
|
t, err := template.New("compute_state").Funcs(map[string]interface{}{
|
||||||
"GetCode": getCode,
|
"GetCode": getCode,
|
||||||
"GetMethod": getMethod,
|
"GetMethod": getMethod,
|
||||||
@ -1071,7 +1071,7 @@ func computeStateHtmlT(ts *types.TipSet, o *api.ComputeStateOutput, getCode func
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
return t.ExecuteTemplate(os.Stdout, "compute_state", &compStateHtmlIn{
|
return t.ExecuteTemplate(os.Stdout, "compute_state", &compStateHTMLIn{
|
||||||
TipSet: ts,
|
TipSet: ts,
|
||||||
Comp: o,
|
Comp: o,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user