From f7016fb7f1709fc4bf6c0e805271ba7dda8facef Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Sun, 28 Jun 2015 08:20:36 -0400 Subject: [PATCH] fix linting errors for Section.Keys method --- section.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/section.go b/section.go index 593cfef..c33fe34 100644 --- a/section.go +++ b/section.go @@ -192,8 +192,8 @@ func (section *Section) HasParent() bool { // Keys will return back a list of all setting names in this Section func (section *Section) Keys() []string { - keys := make([]string, 0) - for key, _ := range section.values { + var keys []string + for key := range section.values { keys = append(keys, key) }