Skip to content

Commit

Permalink
chore: add linter & add/remove some white spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtaba-esk committed Dec 4, 2023
1 parent 631032a commit 8cef6b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ build:
docker:
docker build -t bittwister .

lint:
golangci-lint run ./...

test-go:
sudo go test -v ./... -count=1 -p=1

Expand Down
2 changes: 0 additions & 2 deletions api/v1/net_services_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ func netServiceStop(resp http.ResponseWriter, ns *netRestrictService) error {
Slug: SlugServiceNotReady,
Title: "Service stopped",
})

if err != nil {
return fmt.Errorf("sendJSON failed: %w", err)
}
Expand Down Expand Up @@ -164,7 +163,6 @@ func netServiceStatus(resp http.ResponseWriter, ns *netRestrictService) error {
Slug: statusSlug,
Title: "Service status",
})

if err != nil {
return fmt.Errorf("sendJSON failed: %w", err)
}
Expand Down
1 change: 0 additions & 1 deletion xdp/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ type XdpObject struct {
var xdpObject XdpObject

func GetPreparedXdpObject(netInterfaceIndex int) (*XdpObject, error) {

xdpObject.mu.Lock()
defer xdpObject.mu.Unlock()

Expand Down

0 comments on commit 8cef6b8

Please sign in to comment.