Skip to content

Commit

Permalink
都度出力中にバリデーションかけられるのはおかしく感じたため
Browse files Browse the repository at this point in the history
  • Loading branch information
ddddddO committed Sep 29, 2023
1 parent ba66abd commit 2275334
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions simple_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func newTreeSimple(cfg *config) tree {
return newVerifierSimple(targetDir, strict)
}

growSpreaderFactory := func(lastNodeFormat, intermedialNodeFormat branchFormat, dryrun bool) growSpreaderSimple {
return newGrowSpreaderSimple(lastNodeFormat, intermedialNodeFormat, dryrun)
growSpreaderFactory := func(lastNodeFormat, intermedialNodeFormat branchFormat) growSpreaderSimple {
return newGrowSpreaderSimple(lastNodeFormat, intermedialNodeFormat)
}

return &treeSimple{
Expand All @@ -68,7 +68,6 @@ func newTreeSimple(cfg *config) tree {
growSpreader: growSpreaderFactory(
cfg.lastNodeFormat,
cfg.intermedialNodeFormat,
cfg.dryrun,
),
}
}
Expand Down
3 changes: 1 addition & 2 deletions simple_tree_grow_spreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ import (

func newGrowSpreaderSimple(
lastNodeFormat, intermedialNodeFormat branchFormat,
enabledValidation bool,
) growSpreaderSimple {
return &defaultGrowSpreaderSimple{
defaultGrowerSimple: &defaultGrowerSimple{
lastNodeFormat: lastNodeFormat,
intermedialNodeFormat: intermedialNodeFormat,
enabledValidation: enabledValidation,
enabledValidation: false,
},
}
}
Expand Down

0 comments on commit 2275334

Please sign in to comment.