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:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: Test and Lint
|
name: Test
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
@@ -34,9 +34,3 @@ jobs:
|
|||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test -v ./... # Runs all tests in the project
|
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
|
Numbers []contact.Contact
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (m *MessageSender) Send() error {
|
func (m *MessageSender) Send() error {
|
||||||
if len(m.Numbers) == 0 {
|
if len(m.Numbers) == 0 {
|
||||||
return fmt.Errorf("No numbers to send")
|
return fmt.Errorf("No numbers to send")
|
||||||
|
|||||||
Reference in New Issue
Block a user