Skip to content

Commit

Permalink
Merge pull request #8 from wata727/fix_panic_deep_detecting_with_module
Browse files Browse the repository at this point in the history
Fix panic deep detecting with module
  • Loading branch information
wata727 authored Dec 3, 2016
2 parents 78d522e + 6442966 commit 2b67426
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions detector/detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,14 @@ func (d *Detector) Detect() []*issue.Issue {
}
d.Logger.Info(fmt.Sprintf("detect module `%s`", name))
moduleDetector := &Detector{
ListMap: m.ListMap,
Config: d.Config,
ListMap: m.ListMap,
Config: d.Config,
AwsClient: d.AwsClient,
EvalConfig: &evaluator.Evaluator{
Config: m.Config,
},
Logger: d.Logger,
Error: false,
}
method := reflect.ValueOf(moduleDetector).MethodByName(detectorMethod)
method.Call([]reflect.Value{reflect.ValueOf(&issues)})
Expand Down

0 comments on commit 2b67426

Please sign in to comment.