mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-17 18:31:43 +02:00
@@ -48,6 +48,10 @@ func exportToJson(ctx context.Context, w io.Writer) error {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
for _, entry := range entries {
|
for _, entry := range entries {
|
||||||
|
if entry.Command == "" {
|
||||||
|
// Skip empty commands, see https://github.com/ddworken/hishtory/issues/279
|
||||||
|
continue
|
||||||
|
}
|
||||||
m, err := structToMap(*entry)
|
m, err := structToMap(*entry)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Reference in New Issue
Block a user