We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1bd351 commit 7784863Copy full SHA for 7784863
internal/arduino/builder/cpp/depfile.go
@@ -59,8 +59,6 @@ func readDepFile(depFile string) (*Dependencies, error) {
59
if err != nil {
60
return nil, err
61
}
62
- rows = f.Map(rows, strings.TrimSpace)
63
- rows = f.Filter(rows, f.NotEquals(""))
64
if len(rows) == 0 {
65
return &Dependencies{}, nil
66
@@ -135,5 +133,7 @@ func unescapeAndSplit(s string) ([]string, error) {
135
133
if current.Len() > 0 {
136
134
res = append(res, current.String())
137
+ res = f.Map(res, strings.TrimSpace)
+ res = f.Filter(res, f.NotEquals(""))
138
return res, nil
139
0 commit comments