Skip to content

Commit

Permalink
updates betteralign
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-at-startupmedia committed Oct 10, 2024
1 parent 252076b commit 804b5eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,22 @@ misspell:
.PHONY: betteralign_check
betteralign_check:
@hash betteralign > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) install github.com/dkorunic/betteralign/cmd/betteralign@v0.5.1; \
$(GO) install github.com/dkorunic/betteralign/cmd/betteralign@latest; \
fi
betteralign ./...

.PHONY: betteralign
betteralign:
@hash betteralign > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) install github.com/dkorunic/betteralign/cmd/betteralign@v0.5.1; \
$(GO) install github.com/dkorunic/betteralign/cmd/betteralign@latest; \
fi
betteralign -apply ./...

.PHONY: tools
tools:
$(GO) install golang.org/x/lint/golint@latest
$(GO) install github.com/client9/misspell/cmd/misspell@latest
$(GO) install github.com/dkorunic/betteralign/cmd/betteralign@v0.5.1
$(GO) install github.com/dkorunic/betteralign/cmd/betteralign@latest

.PHONY: base_build
base_build: misspell_check betteralign_check
Expand Down
2 changes: 1 addition & 1 deletion utils/conv/conv.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func StrToUint32(val string) uint32 {
return uint32(uint(StrToInt(val)))
return uint32(StrToInt(val))
}

func StrToInt(val string) int {
Expand Down

0 comments on commit 804b5eb

Please sign in to comment.