w3f / staking-rewards-collector

Apache License 2.0
78 stars 32 forks source link

Do not try to create directory if "" (null) #48

Closed laboon closed 2 years ago

laboon commented 2 years ago

Currently this fails (with ENOENT) if a subdirectory to write is not specified. This just adds a check so it does not try to create the subdirectory if not specified.

jonasW3F commented 2 years ago

Thanks