Skip to content

Commit 23d2b92

Browse files
authored
Skip empty files when parsing (#246)
1 parent 1d9b70a commit 23d2b92

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/yangentry/build_yang.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ func Parse(yangfiles, path []string) (map[string]*yang.Entry, []error) {
3636

3737
var processErr []error
3838
for _, name := range yangfiles {
39+
if name == "" {
40+
continue
41+
}
3942
if err := ms.Read(name); err != nil {
4043
processErr = append(processErr, err)
4144
}

0 commit comments

Comments
 (0)