summaryrefslogtreecommitdiff
path: root/src/rhctl/conf.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-03-27 20:20:32 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2016-03-27 20:20:32 (GMT)
commitc5266574e95fd8c0774b159c171b8dd97871cb6e (patch)
tree4667c282b5decfb5ad749460201eb2740945712b /src/rhctl/conf.go
parent61f48b85e0c0301b1c5384c09c822bc5e2265a4f (diff)
use Trim() not TrimLeft(TrimRight())
Diffstat (limited to 'src/rhctl/conf.go')
-rw-r--r--src/rhctl/conf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rhctl/conf.go b/src/rhctl/conf.go
index 0203471..2dfb9ec 100644
--- a/src/rhctl/conf.go
+++ b/src/rhctl/conf.go
@@ -57,7 +57,7 @@ type Duration struct {
}
func (d *Duration) UnmarshalTOML(data []byte) (err error) {
- ds := strings.TrimRight(strings.TrimLeft(string(data), "\""), "\"")
+ ds := strings.Trim(string(data), "\"")
d.Duration, err = time.ParseDuration(ds)
return
}