MiSawa / xq

Pure rust implementation of jq
MIT License
333 stars 18 forks source link

Simplify definition of isempty filter #77

Closed itchyny closed 2 years ago

itchyny commented 2 years ago

This PR suggests simplification of the isempty filter. The last break statement is unnecessary. Another definition is def isempty(g): first((g|false), true);, just like jq.

MiSawa commented 2 years ago

Nice, thank you!