summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}