Skip to content

Commit

Permalink
無駄に処理をしてしまっていたため
Browse files Browse the repository at this point in the history
  • Loading branch information
ddddddO committed Feb 9, 2022
1 parent aa56619 commit 0583e03
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tree_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ type jsonTree struct {
*tree
}

// noop
func (jt *jsonTree) grow() error {
return nil
}

func (jt *jsonTree) spread(w io.Writer) error {
enc := json.NewEncoder(w)

Expand Down
5 changes: 5 additions & 0 deletions tree_toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ type tomlTree struct {
*tree
}

// noop
func (tt *tomlTree) grow() error {
return nil
}

func (tt *tomlTree) spread(w io.Writer) error {
enc := toml.NewEncoder(w)

Expand Down
5 changes: 5 additions & 0 deletions tree_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ type yamlTree struct {
*tree
}

// noop
func (yt *yamlTree) grow() error {
return nil
}

func (yt *yamlTree) spread(w io.Writer) error {
enc := yaml.NewEncoder(w)

Expand Down

0 comments on commit 0583e03

Please sign in to comment.