mirror of https://github.com/docker/docs.git
Remove the redundant stripComment.
Signed-off-by: xuzhaokui <cynicholas@gmail.com>
This commit is contained in:
parent
b18efeeb7a
commit
6c79ee7d1e
|
@ -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…
Reference in New Issue