diff options
author | Christian Pointner <equinox@spreadspace.org> | 2016-03-27 20:20:32 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2016-03-27 20:20:32 (GMT) |
commit | c5266574e95fd8c0774b159c171b8dd97871cb6e (patch) | |
tree | 4667c282b5decfb5ad749460201eb2740945712b /src/rhctl | |
parent | 61f48b85e0c0301b1c5384c09c822bc5e2265a4f (diff) |
use Trim() not TrimLeft(TrimRight())
Diffstat (limited to 'src/rhctl')
-rw-r--r-- | src/rhctl/conf.go | 2 |
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 } |