1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #9048 from coaku/b_xzk_rm_redundant_trim

Remove redundant stripComment
This commit is contained in:
Erik Hollensbe 2014-11-10 21:53:22 -08:00
commit 0b4132782a

View file

@ -103,10 +103,6 @@ func Parse(rwc io.Reader) (*Node, error) {
for scanner.Scan() {
scannedLine := strings.TrimLeftFunc(scanner.Text(), unicode.IsSpace)
if stripComments(scannedLine) == "" {
continue
}
line, child, err := parseLine(scannedLine)
if err != nil {
return nil, err