Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d1fa65299
|
||
|
|
bad40076c6
|
@@ -4,7 +4,7 @@ on: [push, pull_request] # Triggers on push or pull request events
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test and Lint
|
||||
name: Test
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
@@ -34,9 +34,3 @@ jobs:
|
||||
|
||||
- name: Run tests
|
||||
run: go test -v ./... # Runs all tests in the project
|
||||
|
||||
- name: Run linter
|
||||
uses: https://github.com/golangci/golangci-lint-action@v8
|
||||
with:
|
||||
go-version: '1.25.3'
|
||||
version: latest
|
||||
|
||||
@@ -10,7 +10,6 @@ type MessageSender struct {
|
||||
Numbers []contact.Contact
|
||||
}
|
||||
|
||||
|
||||
func (m *MessageSender) Send() error {
|
||||
if len(m.Numbers) == 0 {
|
||||
return fmt.Errorf("No numbers to send")
|
||||
|
||||
Reference in New Issue
Block a user