Skip to content

Commit

Permalink
Merge pull request #38 from artemseleznev/master
Browse files Browse the repository at this point in the history
static analyzer issue fix
  • Loading branch information
youyuanwu committed May 7, 2023
2 parents b16ed90 + 846117a commit 2aab6fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.go
Expand Up @@ -112,7 +112,7 @@ func flattenComposite(errs *CompositeError) *CompositeError {
for _, er := range errs.Errors {
switch e := er.(type) {
case *CompositeError:
if len(e.Errors) > 0 {
if e != nil && len(e.Errors) > 0 {
flat := flattenComposite(e)
if len(flat.Errors) > 0 {
res = append(res, flat.Errors...)
Expand Down

0 comments on commit 2aab6fa

Please sign in to comment.