Merge pull request #9048 from coaku/b_xzk_rm_redundant_trim
Remove redundant stripComment Upstream-commit: 0b4132782a7ceec6815e73a10e50d7b007d7b9dd Component: engine
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user