mirror of
https://github.com/restic/restic.git
synced 2026-07-05 23:05:08 +00:00
fix comment and variable name typos
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user