Skip to content

Commit

Permalink
Merge pull request #118 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 2.1.1
  • Loading branch information
andyone authored Dec 8, 2023
2 parents 612a4ce + 03cb2e7 commit d99b549
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}

Expand All @@ -59,7 +59,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.19.x'

Expand Down
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
// App info
const (
APP = "aligo"
VER = "2.1.0"
VER = "2.1.1"
DESC = "Utility for viewing and checking Go struct alignment"
)

Expand Down
5 changes: 3 additions & 2 deletions cli/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func PrintStruct(r *report.Report, strName string, optimal bool) {
// Check checks report for problems
func Check(r *report.Report) bool {
if isEmptyReport(r) {
return false
return true
}

var hasProblems bool
Expand All @@ -85,9 +85,10 @@ func Check(r *report.Report) bool {

if !hasProblems {
fmtc.Println("{g}All structs are well aligned{!}")
return true
}

return hasProblems
return false
}

// ////////////////////////////////////////////////////////////////////////////////// //
Expand Down

0 comments on commit d99b549

Please sign in to comment.