Browse Source

fix unused warning.

ZRY 1 month ago
parent
commit
9dd5dbd713
1 changed files with 5 additions and 5 deletions
  1. 5 5
      afero2webdav/a2wfs.go

+ 5 - 5
afero2webdav/a2wfs.go

@@ -19,22 +19,22 @@ func NewAfero2Webdav(aferoFs afero.Fs) *Afero2Webdav {
 	}
 }
 
-func (a Afero2Webdav) Mkdir(ctx context.Context, name string, perm os.FileMode) error {
+func (a Afero2Webdav) Mkdir(_ context.Context, name string, perm os.FileMode) error {
 	return a.AferoFs.Mkdir(name, perm)
 }
 
-func (a Afero2Webdav) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (webdav.File, error) {
+func (a Afero2Webdav) OpenFile(_ context.Context, name string, flag int, perm os.FileMode) (webdav.File, error) {
 	return a.AferoFs.OpenFile(name, flag, perm)
 }
 
-func (a Afero2Webdav) RemoveAll(ctx context.Context, name string) error {
+func (a Afero2Webdav) RemoveAll(_ context.Context, name string) error {
 	return a.AferoFs.RemoveAll(name)
 }
 
-func (a Afero2Webdav) Rename(ctx context.Context, oldName, newName string) error {
+func (a Afero2Webdav) Rename(_ context.Context, oldName, newName string) error {
 	return a.AferoFs.Rename(oldName, newName)
 }
 
-func (a Afero2Webdav) Stat(ctx context.Context, name string) (os.FileInfo, error) {
+func (a Afero2Webdav) Stat(_ context.Context, name string) (os.FileInfo, error) {
 	return a.AferoFs.Stat(name)
 }