Skip to content

Commit

Permalink
lint - remove progress prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikelee committed Nov 21, 2024
1 parent 7ca442b commit 86408b1
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions orbit/pkg/luks/luks_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,20 +252,6 @@ func (lr *LuksRunner) infoPrompt(ctx context.Context, title, text string) error
return nil
}

func (lr *LuksRunner) progressPrompt(ctx context.Context, text string) func() {
ctx, cancel := context.WithCancel(ctx)
go func() {
err := lr.notifier.ShowProgress(ctx, dialog.ProgressOptions{
Title: "Disk encryption",
Text: text,
})
if err != nil {
log.Error().Err(err).Msg("failed to show progress dialog")
}
}()
return cancel
}

type LuksDump struct {
Keyslots map[string]Keyslot `json:"keyslots"`
}
Expand Down

0 comments on commit 86408b1

Please sign in to comment.