Skip to content

Commit 97083ed

Browse files
author
Chris Stockton
committed
chore: remove unused code block
1 parent c524653 commit 97083ed

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

internal/conf/envparse/envparse.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,6 @@ func extractVarValue(src []byte) (value string, rest []byte, err error) {
249249
value = string(valueBytes)
250250
return value, src[i+1:], nil
251251
}
252-
253-
// return formatted error if quoted string is not terminated
254-
valEndIndex := bytes.IndexFunc(src, isCharFunc('\n'))
255-
if valEndIndex == -1 {
256-
valEndIndex = len(src)
257-
}
258252
return "", nil, errors.New("unterminated quoted value")
259253
}
260254

0 commit comments

Comments
 (0)