From 9e0a616dcb17b23566e347fcedff74b385ae9491 Mon Sep 17 00:00:00 2001 From: Marcel Kloubert Date: Wed, 1 Jan 2025 02:00:56 +0100 Subject: [PATCH] fix: issues found by Go Report Card --- CHANGELOG.md | 2 +- README.md | 2 ++ types/ai_editor.go | 2 +- types/app_context.go | 2 -- utils/utils.go | 2 -- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 480b0ec..b597746 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/README.md b/README.md index bf4e419..3441146 100644 --- a/README.md +++ b/README.md @@ -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"e=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 diff --git a/types/ai_editor.go b/types/ai_editor.go index 14a1220..1781535 100644 --- a/types/ai_editor.go +++ b/types/ai_editor.go @@ -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 diff --git a/types/app_context.go b/types/app_context.go index 2f97e0f..a800ee5 100644 --- a/types/app_context.go +++ b/types/app_context.go @@ -843,8 +843,6 @@ func (app *AppContext) ListFiles() ([]string, error) { } } - matchingFiles = nil - return files, nil } diff --git a/utils/utils.go b/utils/utils.go index 44e56a1..867b654 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -440,8 +440,6 @@ func RemoveDuplicatesInStringList(arr []string) []string { } } - alreadySeen = nil - return result }