Skip to content

Commit

Permalink
Merge pull request #6 from okazaki-kk/fix-fmt
Browse files Browse the repository at this point in the history
fix fmt ci
  • Loading branch information
okazaki-kk authored Mar 24, 2024
2 parents a70bddf + 05cda46 commit 4bbe651
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ jobs:
run: make

- name: Fmt
run: make fmt
run: |
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
exit 1
fi
- name: Test
run: make test
4 changes: 2 additions & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ func TestResponsePacket(t *testing.T) {
expectedDnsRecords: []DnsRecord{
{
domain: "www.yahoo.com",
host: "me-ycpi-cf-www.g06.yahoodns.net",
ttl: 60,
host: "me-ycpi-cf-www.g06.yahoodns.net",
ttl: 60,
},
{
domain: "me-ycpi-cf-www.g06.yahoodns.net",
Expand Down
2 changes: 1 addition & 1 deletion record.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type DnsRecord struct {
domain string
ttl uint32
addr string
host string
host string
}

// NewDnsRecord creates a new DnsRecord
Expand Down

0 comments on commit 4bbe651

Please sign in to comment.