@@ -44,20 +44,20 @@ func Load(schema Schema, values map[string]string) (Map, error) {
4444func (m * Map ) Change (changes map [string ]string ) (map [string ]string , error ) {
4545 values := make (map [string ]string , len (m .schema ))
4646
47- errors := & ErrorList {}
47+ errList := & ErrorList {}
4848 for name , change := range changes {
4949 // Ensure that we were actually passed a string.
5050 s := reflect .ValueOf (change )
5151 if s .Kind () != reflect .String {
52- errors .add (name , nil , fmt .Sprintf ("invalid type %s" , s .Kind ()))
52+ errList .add (name , nil , fmt .Sprintf ("invalid type %s" , s .Kind ()))
5353 continue
5454 }
5555
5656 values [name ] = change
5757 }
5858
59- if errors .Len () > 0 {
60- return nil , errors
59+ if errList .Len () > 0 {
60+ return nil , errList
6161 }
6262
6363 // Any key not explicitly set, is considered unset.
@@ -174,12 +174,12 @@ func (m *Map) update(values map[string]string) ([]string, error) {
174174
175175 // Update our keys with the values from the given map, and keep track
176176 // of which keys actually changed their value.
177- errors := & ErrorList {}
177+ errList := & ErrorList {}
178178 names := []string {}
179179 for name , value := range values {
180180 changed , err := m .set (name , value , initial )
181181 if err != nil {
182- errors .add (name , value , err .Error ())
182+ errList .add (name , value , err .Error ())
183183 continue
184184 }
185185
@@ -190,9 +190,9 @@ func (m *Map) update(values map[string]string) ([]string, error) {
190190 sort .Strings (names )
191191
192192 var err error
193- if errors .Len () > 0 {
194- errors .sort ()
195- err = errors
193+ if errList .Len () > 0 {
194+ errList .sort ()
195+ err = errList
196196 }
197197
198198 return names , err
0 commit comments