mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-19 03:06:45 +02:00
no context pointers
This commit is contained in:
@@ -33,7 +33,7 @@ var redactCmd = &cobra.Command{
|
||||
},
|
||||
}
|
||||
|
||||
func redact(ctx *context.Context, query string, force bool) error {
|
||||
func redact(ctx context.Context, query string, force bool) error {
|
||||
tx, err := lib.MakeWhereQueryFromSearch(ctx, hctx.GetDb(ctx), query)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -75,7 +75,7 @@ func redact(ctx *context.Context, query string, force bool) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func deleteOnRemoteInstances(ctx *context.Context, historyEntries []*data.HistoryEntry) error {
|
||||
func deleteOnRemoteInstances(ctx context.Context, historyEntries []*data.HistoryEntry) error {
|
||||
config := hctx.GetConf(ctx)
|
||||
if config.IsOffline {
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user