mirror of
https://github.com/rclone/rclone.git
synced 2025-02-23 14:01:25 +01:00
lsjson: fix unterminated JSON in the presence of errors
See: https://forum.rclone.org/t/rclone-lsjson-invalid-json-produced-no-at-the-end/22046
This commit is contained in:
parent
f08e43fb77
commit
f627d42a51
@ -121,14 +121,11 @@ can be processed line by line as each item is written one to a line.
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if !first {
|
if !first {
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
}
|
}
|
||||||
fmt.Println("]")
|
fmt.Println("]")
|
||||||
return nil
|
return err
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user