Skip to content

Commit

Permalink
Skip empty files when parsing (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
wenovus authored Aug 3, 2023
1 parent 1d9b70a commit 23d2b92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/yangentry/build_yang.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ func Parse(yangfiles, path []string) (map[string]*yang.Entry, []error) {

var processErr []error
for _, name := range yangfiles {
if name == "" {
continue
}
if err := ms.Read(name); err != nil {
processErr = append(processErr, err)
}
Expand Down

0 comments on commit 23d2b92

Please sign in to comment.