aboutsummaryrefslogtreecommitdiff
path: root/internal/assets/public/public.go
diff options
context:
space:
mode:
authordeepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>2022-03-06 16:37:41 +0800
committerGitHub <noreply@github.com>2022-03-06 16:37:41 +0800
commit09dbbf9a6989c8045e0297c5d62c9e0c2732c1d9 (patch)
tree89e87d402ad163d5eaf93cf10824d0cc471654d9 /internal/assets/public/public.go
parentb7372b1f32cd0bb40984debfb049e3fc04efaee4 (diff)
autofix: fix unused method receiver (#6808)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal/assets/public/public.go')
-rw-r--r--internal/assets/public/public.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/assets/public/public.go b/internal/assets/public/public.go
index e1747ff1..4ad92605 100644
--- a/internal/assets/public/public.go
+++ b/internal/assets/public/public.go
@@ -33,20 +33,20 @@ func (d fileInfo) Size() int64 {
return d.size
}
-func (d fileInfo) Mode() os.FileMode {
+func (fileInfo) Mode() os.FileMode {
return os.FileMode(0644) | os.ModeDir
}
-func (d fileInfo) ModTime() time.Time {
+func (fileInfo) ModTime() time.Time {
return time.Time{}
}
// IsDir return file whether a directory
-func (d *fileInfo) IsDir() bool {
+func (*fileInfo) IsDir() bool {
return true
}
-func (d fileInfo) Sys() interface{} {
+func (fileInfo) Sys() interface{} {
return nil
}
@@ -59,7 +59,7 @@ type file struct {
childrenOffset int
}
-func (f *file) Close() error {
+func (*file) Close() error {
return nil
}
@@ -95,7 +95,7 @@ func (f *file) Stat() (os.FileInfo, error) {
// fileSystem implements the http.FileSystem interface.
type fileSystem struct{}
-func (f *fileSystem) Open(name string) (http.File, error) {
+func (*fileSystem) Open(name string) (http.File, error) {
if len(name) > 0 && name[0] == '/' {
name = name[1:]
}