Skip to content

Commit

Permalink
optimize: panic if mismatch correct operation
Browse files Browse the repository at this point in the history
  • Loading branch information
justlorain committed Feb 15, 2025
1 parent 31e80dc commit cec401e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ package internal

import (
"fmt"
"log/slog"
"os"
"sync"
)
Expand Down Expand Up @@ -60,6 +59,6 @@ func ExecuteTasks(operation Operation, muteF bool) {
os.Exit(1)
}
default:
slog.Warn("not a valid operation")
panic("not a valid operation")
}
}

0 comments on commit cec401e

Please sign in to comment.