simplify paths/0 and paths/1
Before adoption: this commit came in with the history the project adopted, so no landing records it.
`recurse/0` already handles traversing objects and arrays, so it is more consistent to use that. For `paths/1` it is easier to use the actual value returned by `recurse` instead of querying that value with `getpath/1` afterwards.
authored by Andreas Heiduk · committed by GitHub · parent 6c03513 · Browse files · 1 file+2 added−2 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+2 added−2 removed
- other:+2 added−2 removed