Skip to content

Commit 484e95d

Browse files
committed
linter: error message should not be capitalized
1 parent 6a9c9bb commit 484e95d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

properties.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func LoadFromBytes(bytes []byte) (*Map, error) {
139139

140140
for lineNum, line := range strings.Split(text, "\n") {
141141
if err := properties.parseLine(line); err != nil {
142-
return nil, fmt.Errorf("Error parsing data at line %d: %s", lineNum, err)
142+
return nil, fmt.Errorf("error parsing data at line %d: %s", lineNum, err)
143143
}
144144
}
145145

@@ -150,12 +150,12 @@ func LoadFromBytes(bytes []byte) (*Map, error) {
150150
func Load(filepath string) (*Map, error) {
151151
bytes, err := ioutil.ReadFile(filepath)
152152
if err != nil {
153-
return nil, fmt.Errorf("Error reading file: %s", err)
153+
return nil, fmt.Errorf("error reading file: %s", err)
154154
}
155155

156156
res, err := LoadFromBytes(bytes)
157157
if err != nil {
158-
return nil, fmt.Errorf("Error reading file: %s", err)
158+
return nil, fmt.Errorf("error reading file: %s", err)
159159
}
160160
return res, nil
161161
}
@@ -172,7 +172,7 @@ func LoadFromSlice(lines []string) (*Map, error) {
172172

173173
for lineNum, line := range lines {
174174
if err := properties.parseLine(line); err != nil {
175-
return nil, fmt.Errorf("Error reading from slice (index:%d): %s", lineNum, err)
175+
return nil, fmt.Errorf("error reading from slice (index:%d): %s", lineNum, err)
176176
}
177177
}
178178

@@ -189,7 +189,7 @@ func (m *Map) parseLine(line string) error {
189189

190190
lineParts := strings.SplitN(line, "=", 2)
191191
if len(lineParts) != 2 {
192-
return fmt.Errorf("Invalid line format, should be 'key=value'")
192+
return fmt.Errorf("invalid line format, should be 'key=value'")
193193
}
194194
key := strings.TrimSpace(lineParts[0])
195195
value := strings.TrimSpace(lineParts[1])

0 commit comments

Comments
 (0)