diff options
author | Albert Nigmatzianov <albertnigma@gmail.com> | 2017-03-09 18:18:12 +0500 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-09 14:18:12 +0100 |
commit | 48120ccfd2138ff2b308081cd7cb9cee033db691 (patch) | |
tree | e008e9b8ebccdd897d51ae152c4d2b89215237de /commands | |
parent | 560ed6e686f19c58dc98af9f47bb35c81f4d7979 (diff) |
all: Fix some govet complaints
Diffstat (limited to 'commands')
-rw-r--r-- | commands/convert.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/convert.go b/commands/convert.go index c24282550..034d5bf55 100644 --- a/commands/convert.go +++ b/commands/convert.go @@ -123,14 +123,14 @@ func convertContents(mark rune) error { // better handling of dates in formats that don't have support for them if mark == parser.FormatToLeadRune("json") || mark == parser.FormatToLeadRune("yaml") || mark == parser.FormatToLeadRune("toml") { - newmetadata := cast.ToStringMap(metadata) - for k, v := range newmetadata { + newMetadata := cast.ToStringMap(metadata) + for k, v := range newMetadata { switch vv := v.(type) { case time.Time: - newmetadata[k] = vv.Format(time.RFC3339) + newMetadata[k] = vv.Format(time.RFC3339) } } - metadata = newmetadata + metadata = newMetadata } page.SetDir(filepath.Join(contentDir, file.Dir())) |