mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove the redundant stripComment.
Signed-off-by: xuzhaokui <cynicholas@gmail.com>
This commit is contained in:
parent
b18efeeb7a
commit
6c79ee7d1e
1 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue