societe-generale/github-crawler

allow indicatorsToFetchByFile to be empty

vincent-fuchs opened this issue · 0 comments

Summary

If I want to run the crawler for something else than indicatorsToFetchByFile, I would leave it empty in config.

Type of Issue

It is a :

  • [X ] bug
  • request
  • question regarding the documentation

Motivation

Ease of use !

Current Behavior

getting :

Caused by: java.lang.UnsupportedOperationException: Empty collection can't be reduced.
at com.societegenerale.githubcrawler.RepositoryEnricher.fetchIndicatorsValues(RepositoryEnricher.kt:163) ~[classes/:na]

Expected Behavior

it should just ignore, the empty list, not fetch any indicators, and continue the processing

Steps to Reproduce (for bugs)

Your Environment

  • Version used:1.0.2