This repository was archived by the owner on Jan 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -82,14 +82,13 @@ func ParseReader(file io.Reader) ([]Command, error) {
82
82
}
83
83
84
84
cmd .Json = child .Attributes ["json" ]
85
-
86
85
for n := child .Next ; n != nil ; n = n .Next {
87
86
cmd .Value = append (cmd .Value , n .Value )
88
87
}
89
88
90
89
if len (child .Heredocs ) != 0 {
91
90
// For heredocs, add heredocs extra lines to Original,
92
- // and each content to the Value array .
91
+ // and to the heredocs list .
93
92
cmd .Original = cmd .Original + "\n "
94
93
for _ , heredoc := range child .Heredocs {
95
94
cmd .Original = cmd .Original + heredoc .Content + heredoc .Name + "\n "
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ func heredocsToPy(heredocs []dockerfile.Heredoc) *C.PyObject {
88
88
89
89
pyFileDescriptor := C .PyLong_FromLong (C .long (heredoc .FileDescriptor ))
90
90
91
- pyContent := stringToPyOrNone (heredoc .Content )
91
+ pyContent := stringToPy (heredoc .Content )
92
92
if pyContent == nil {
93
93
decrefAll ()
94
94
return nil
@@ -125,7 +125,6 @@ func cmdsToPy(cmds []dockerfile.Command) *C.PyObject {
125
125
C .Py_DecRef (pyValue )
126
126
C .Py_DecRef (pyHeredocs )
127
127
C .Py_DecRef (ret )
128
-
129
128
}
130
129
131
130
ret = C .PyTuple_New (C .Py_ssize_t (len (cmds )))
You can’t perform that action at this time.
0 commit comments