aboutsummaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/config.go b/config.go
index 64a4a51..a0f17db 100644
--- a/config.go
+++ b/config.go
@@ -35,9 +35,8 @@ type Twilio struct {
}
func loadConfig(r io.Reader) (*Config, error) {
- dec := yaml.NewDecoder(r)
cfg := &Config{}
- if err := dec.Decode(cfg); err != nil {
+ if err := yaml.NewDecoder(r).Decode(cfg); err != nil {
return nil, err
}
return cfg, nil