Skip to content

Commit

Permalink
Updated to use ReadAll from io package.
Browse files Browse the repository at this point in the history
  • Loading branch information
yaricom committed Dec 9, 2024
1 parent 1eafb0d commit 656f7b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions neat/neat_options_readers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ import (
"github.com/yaricom/goNEAT/v4/neat/math"
"gopkg.in/yaml.v3"
"io"
"io/ioutil"
"os"
"strconv"
"strings"
)

// LoadYAMLOptions is to load NEAT options encoded as YAML file
func LoadYAMLOptions(r io.Reader) (*Options, error) {
content, err := ioutil.ReadAll(r)
content, err := io.ReadAll(r)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 656f7b9

Please sign in to comment.