tradle / asyncstorage-down

A leveldown API implementation that maps to AsyncStorage in React Native
MIT License
81 stars 25 forks source link

only call `multiRemove` if there are keys to remove in `destroy` method #8

Closed sethvincent closed 7 years ago

sethvincent commented 7 years ago

This ensures that multiRemove is only called if there are at least one key in the keys array.

An empty array results in the error Array [ [Error: Invalid key] ]

mvayngrib commented 7 years ago

@sethvincent thanks! released in 4.0.1

mvayngrib commented 7 years ago

in case the history is confusing, it's cause 4.0.0 was released earlier, but i forgot to push the commit

sethvincent commented 7 years ago

:+1: thanks!