Closed itchyny closed 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.
isempty
def isempty(g): first((g|false), true);
Nice, thank you!
This PR suggests simplification of the
isempty
filter. The last break statement is unnecessary. Another definition isdef isempty(g): first((g|false), true);
, just like jq.