Skip to content

Commit

Permalink
fix: issues found by Go Report Card
Browse files Browse the repository at this point in the history
  • Loading branch information
mkloubert committed Jan 1, 2025
1 parent c58b375 commit 9e0a616
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log (go-package-manager)

## 0.26.1
## 0.26.2

- feat: automatic Go compiler detection in `generate project` command
- refactor: using Go compiler `1.23.4`
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# gpm - A package manager in and for Go

[![Go Reference](https://pkg.go.dev/badge/github.com/mkloubert/go-package-manager.svg)](https://pkg.go.dev/github.com/mkloubert/go-package-manager) [![Go Report Card](https://goreportcard.com/badge/github.com/mkloubert/go-package-manager)](https://goreportcard.com/report/github.com/mkloubert/go-package-manager)

[![Share via Facebook](https://raw.githubusercontent.com/mkloubert/go-package-manager/master/img/share/Facebook.png)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fgithub.com%2Fmkloubert%2Fgo-package-manager&quote=gpm%20-%20Go%20Package%20Manager) [![Share via X](https://raw.githubusercontent.com/mkloubert/go-package-manager/master/img/share/X.png)](https://x.com/intent/tweet?source=https%3A%2F%2Fgithub.com%2Fmkloubert%2Fgo-package-manager&text=gpm%20-%20Go%20Package%20Manager) [![Share via Pinterest](https://raw.githubusercontent.com/mkloubert/go-package-manager/master/img/share/Pinterest.png)](https://pinterest.com/pin/create/button/?url=https%3A%2F%2Fgithub.com%2Fmkloubert%2Fgo-package-manager&description=gpm%20-%20Go%20Package%20Manager) [![Share via Reddit](https://raw.githubusercontent.com/mkloubert/go-package-manager/master/img/share/Reddit.png)](https://www.reddit.com/submit?url=https%3A%2F%2Fgithub.com%2Fmkloubert%2Fgo-package-manager&title=gpm%20-%20Go%20Package%20Manager) [![Share via LinkedIn](https://raw.githubusercontent.com/mkloubert/go-package-manager/master/img/share/LinkedIn.png)](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fgithub.com%2Fmkloubert%2Fgo-package-manager&title=gpm%20-%20Go%20Package%20Manager) [![Share via Wordpress](https://raw.githubusercontent.com/mkloubert/go-package-manager/master/img/share/Wordpress.png)](https://wordpress.com/press-this.php?u=https%3A%2F%2Fgithub.com%2Fmkloubert%2Fgo-package-manager&s=gpm%20-%20Go%20Package%20Manager) [![Share via Email](https://raw.githubusercontent.com/mkloubert/go-package-manager/master/img/share/Email.png)](mailto:?subject=gpm%20-%20Go%20Package%20Manager&body=https%3A%2F%2Fgithub.com%2Fmkloubert%2Fgo-package-manager)

## Table of contents
Expand Down
2 changes: 1 addition & 1 deletion types/ai_editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ func (e *AIEditor) UpdateFileTree(fileItems []AIEditorFileItem) []*AIEditorFileT
roots = append(roots, node)
}

// sort recursivly
// sort recursively
sort_ai_editor_file_nodes(roots)

// set new data and update view
Expand Down
2 changes: 0 additions & 2 deletions types/app_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,6 @@ func (app *AppContext) ListFiles() ([]string, error) {
}
}

matchingFiles = nil

return files, nil
}

Expand Down
2 changes: 0 additions & 2 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,6 @@ func RemoveDuplicatesInStringList(arr []string) []string {
}
}

alreadySeen = nil

return result
}

Expand Down

0 comments on commit 9e0a616

Please sign in to comment.