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:
17
jc/utils.py
17
jc/utils.py
@ -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):
|
||||
|
Reference in New Issue
Block a user