GoAdminGroup / go-admin

Unused parameter in function RVV-B0012
Bug risk
Minor
10 days ago2 years old
parameter 'name' seems to be unused, consider removing or renaming it as _
568func (b *BaseComponent) IsAPage() bool                        { return false }
569func (b *BaseComponent) GetName() string                      { return b.Name }
570func (b *BaseComponent) GetAssetList() []string               { return make([]string, 0) }
571func (b *BaseComponent) GetAsset(name string) ([]byte, error) { return nil, nil }572func (b *BaseComponent) GetJS() template.JS                   { return b.JS }
573func (b *BaseComponent) GetCSS() template.CSS                 { return b.CSS }
574func (b *BaseComponent) GetCallbacks() types.Callbacks        { return b.Callbacks }
parameter 'gzipCompression' seems to be unused, consider removing or renaming it as _
471//
472// You can define your own "Content-Type" header also, after this function call
473// Doesn't implements resuming (by range), use ctx.SendFile instead
474func (ctx *Context) ServeContent(content io.ReadSeeker, filename string, modtime time.Time, gzipCompression bool) error {475	if modified, err := ctx.CheckIfModifiedSince(modtime); !modified && err == nil {
476		ctx.WriteNotModified()
477		return nil
parameter 'ctx' seems to be unused, consider removing or renaming it as _
 804func (def *DefaultAction) BtnAttribute() template.HTML                      { return def.Attr }
 805func (def *DefaultAction) BtnClass() template.HTML                          { return "" }
 806func (def *DefaultAction) ExtContent(ctx *context.Context) template.HTML    { return def.Ext }
 807func (def *DefaultAction) FooterContent(ctx *context.Context) template.HTML { return def.Footer } 808func (def *DefaultAction) GetCallbacks() context.Node                       { return context.Node{} }
 809
 810var _ Action = (*DefaultAction)(nil)
parameter 'ctx' seems to be unused, consider removing or renaming it as _
 803func (def *DefaultAction) Js() template.JS                                  { return def.JS }
 804func (def *DefaultAction) BtnAttribute() template.HTML                      { return def.Attr }
 805func (def *DefaultAction) BtnClass() template.HTML                          { return "" }
 806func (def *DefaultAction) ExtContent(ctx *context.Context) template.HTML    { return def.Ext } 807func (def *DefaultAction) FooterContent(ctx *context.Context) template.HTML { return def.Footer }
 808func (def *DefaultAction) GetCallbacks() context.Node                       { return context.Node{} }
 809
parameter 'ctx' seems to be unused, consider removing or renaming it as _
 782func (def *NilAction) BtnAttribute() template.HTML                      { return "" }
 783func (def *NilAction) BtnClass() template.HTML                          { return "" }
 784func (def *NilAction) ExtContent(ctx *context.Context) template.HTML    { return "" }
 785func (def *NilAction) FooterContent(ctx *context.Context) template.HTML { return "" } 786func (def *NilAction) GetCallbacks() context.Node                       { return context.Node{} }
 787
 788type Actions []Action