fix comment and variable name typos

This commit is contained in:
Michael Eischer
2026-05-16 16:52:50 +02:00
parent fa1a318780
commit 10645ccd2a
17 changed files with 34 additions and 30 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ func NewTreeRewriter(opts RewriteOpts) *TreeRewriter {
return rw
}
func NewSnapshotSizeRewriter(rewriteNode NodeRewriteFunc, keepEmptyDirecoryFilter NodeKeepEmptyDirectoryFunc) (*TreeRewriter, QueryRewrittenSizeFunc) {
func NewSnapshotSizeRewriter(rewriteNode NodeRewriteFunc, keepEmptyDirectoryFilter NodeKeepEmptyDirectoryFunc) (*TreeRewriter, QueryRewrittenSizeFunc) {
var count uint
var size uint64
@@ -80,7 +80,7 @@ func NewSnapshotSizeRewriter(rewriteNode NodeRewriteFunc, keepEmptyDirecoryFilte
return node
},
DisableNodeCache: true,
KeepEmptyDirectory: keepEmptyDirecoryFilter,
KeepEmptyDirectory: keepEmptyDirectoryFilter,
})
ss := func() SnapshotSize {
+1 -1
View File
@@ -15,7 +15,7 @@ var ErrSkipNode = errors.New("skip this node")
// WalkFunc is the type of the function called for each node visited by Walk.
// Path is the slash-separated path from the root node. If there was a problem
// loading a node, err is set to a non-nil error. WalkFunc can chose to ignore
// loading a node, err is set to a non-nil error. WalkFunc can choose to ignore
// it by returning nil.
//
// When the special value ErrSkipNode is returned and node is a dir node, it is