Handle error in general when no parameter was passed to Tackle().
Handle error in general when no parameter was passed to `Tackle()`.
handle-edge-case into master Handle error in general when no parameter was passed to Tackle().
This PR adds error handling for cases when no parameter is passed to Tackle() and makes minor adjustments in test descriptions. Key changes include:
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tackle_test.go | Adjusted test case names and added a new test for empty targets. |
| nice.go | Added handling for no targets by returning a generic error type. |
tackle_test.go:63
t.Run("No artefact type", func(t *testing.T) {
nice.go:54
// Not passing any parameter to targets will assume generic error
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?