Skip to content

Commit cf9238c

Browse files
author
Phrase
committed
1 parent 0bba720 commit cf9238c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

config.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package phrase
33
import (
44
"errors"
55
"fmt"
6-
"io/ioutil"
76
"os"
87
"path/filepath"
98

@@ -32,8 +31,8 @@ type Config struct {
3231

3332
Defaults map[string]map[string]interface{}
3433

35-
Targets []byte
36-
Sources []byte
34+
Pull []byte
35+
Push []byte
3736

3837
UserAgent string
3938
}
@@ -83,7 +82,7 @@ func configContent(cfgFilePath string) ([]byte, error) {
8382
case path == "":
8483
return nil, nil
8584
default:
86-
return ioutil.ReadFile(path)
85+
return os.ReadFile(path)
8786
}
8887
}
8988

@@ -141,8 +140,8 @@ func (cfg *Config) UnmarshalYAML(unmarshal func(i interface{}) error) error {
141140
"per_page": &cfg.PerPage,
142141
"project_id": &cfg.DefaultProjectID,
143142
"file_format": &cfg.DefaultFileFormat,
144-
"push": &cfg.Sources,
145-
"pull": &cfg.Targets,
143+
"push": &cfg.Push,
144+
"pull": &cfg.Pull,
146145
"defaults": &m,
147146
})
148147
if err != nil {

0 commit comments

Comments
 (0)