1
0
Fork 0
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:
xuzhaokui 2014-11-09 22:12:54 +08:00
parent b18efeeb7a
commit 6c79ee7d1e

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