Skip to content
Snippets Groups Projects
Unverified Commit 2aab6fa3 authored by youyuanwu's avatar youyuanwu Committed by GitHub
Browse files

Merge pull request #38 from artemseleznev/master

static analyzer issue fix
parents b16ed90f 846117ac
No related branches found
No related tags found
No related merge requests found
......@@ -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...)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment