Skip to content

Commit

Permalink
Fix embarassing index comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
yunginnanet committed Dec 16, 2021
1 parent 47a77c6 commit de7735d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/grammar.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ func (s SearchGrammar) Run(ctx *kong.Context, tx *buntdb.Tx) error {
return nil
}

fmt.Fprintf(ctx.Stdout, "\n\n-------------------\n\nFound %d keys, written above. \nSleeping 10 seconds before we delete.\n", len(keys))
fmt.Fprintf(ctx.Stdout, "\n-------------------\n\nFound %d keys, written above. \nSleeping 10 seconds before we delete.\n", len(keys))
for n := 0; n != 10; n++ {
time.Sleep(1 * time.Second)
fmt.Fprintf(ctx.Stdout, ".")
}

for i, k := range keys {
if i == 1 {
if i == 0 {
fmt.Fprint(ctx.Stdout, "\n")
}
_, err := tx.Delete(k)
Expand Down

0 comments on commit de7735d

Please sign in to comment.