1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

shorten successful yield to a single line

This commit is contained in:
Kelly Brazil
2021-09-16 22:32:46 -07:00
parent 92c7357615
commit 130b3738cc
4 changed files with 21 additions and 26 deletions

View File

@ -173,12 +173,17 @@ def convert_to_bool(value):
return False
stream_success = {
'_meta':
{
'success': True
}
}
def stream_success(output_line, quiet):
if quiet:
output_line.update(
{
'_meta':
{
'success': True
}
}
)
return output_line
def stream_error(e, quiet, line):