mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-27 15:32:21 +02:00
Move err check so that it only executes if it is reassigned
This commit is contained in:
parent
717cf2c4b0
commit
45aa218bd3
@ -352,9 +352,9 @@ func ImportHistory(ctx context.Context, shouldReadStdin, force bool) (int, error
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
}
|
if err != nil {
|
||||||
if err != nil {
|
return 0, err
|
||||||
return 0, err
|
}
|
||||||
}
|
}
|
||||||
err = Reupload(ctx)
|
err = Reupload(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user