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:
commit
0b4132782a
1 changed files with 0 additions and 4 deletions
|
@ -103,10 +103,6 @@ func Parse(rwc io.Reader) (*Node, error) {
|
||||||
|
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
scannedLine := strings.TrimLeftFunc(scanner.Text(), unicode.IsSpace)
|
scannedLine := strings.TrimLeftFunc(scanner.Text(), unicode.IsSpace)
|
||||||
if stripComments(scannedLine) == "" {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
line, child, err := parseLine(scannedLine)
|
line, child, err := parseLine(scannedLine)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Add table
Reference in a new issue