Skip to content

Commit be6c6b3

Browse files
author
Kaan Yalti
committed
enhancement(5235): moved where mkdriAllFunc type is declared
1 parent 7e9ccf8 commit be6c6b3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

internal/pkg/agent/application/upgrade/step_unpack.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ type UnpackResult struct {
3737

3838
// Types used to abstract copy, mkdirAll and openFile functions
3939
type copyFunc func(dst io.Writer, src io.Reader) (written int64, err error)
40-
type mkdirAllFunc func(name string, perm fs.FileMode) error
4140
type openFileFunc func(name string, flag int, perm fs.FileMode) (*os.File, error)
4241
type unarchiveFunc func(log *logger.Logger, archivePath, dataDir string, flavor string, copy copyFunc, mkdirAll mkdirAllFunc, openFile openFileFunc) (UnpackResult, error)
4342

internal/pkg/agent/application/upgrade/upgrade.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ type copyRunDirectoryFunc func(log *logger.Logger, oldRunPath, newRunPath string
8484
type fileDirCopyFunc func(from, to string, opts ...copy.Options) error
8585

8686
// Types used to abstract stdlib functions
87-
87+
type mkdirAllFunc func(name string, perm fs.FileMode) error
8888
type readFileFunc func(name string) ([]byte, error)
8989
type writeFileFunc func(name string, data []byte, perm fs.FileMode) error
9090

0 commit comments

Comments
 (0)