mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-22 04:42:37 +03:00
Modernize all codes
go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...
This commit is contained in:
@@ -30,7 +30,7 @@ func SortRange(x int, y int) (int, int) {
|
||||
return y, x
|
||||
}
|
||||
|
||||
func AsJson(i interface{}) string {
|
||||
func AsJson(i any) string {
|
||||
bytes, _ := json.MarshalIndent(i, "", " ")
|
||||
return string(bytes)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user