Skip to content

Commit

Permalink
style: format code with Gofumpt and Prettier
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in d70dc90 according to the output
from Gofumpt and Prettier.

Details: #2696
  • Loading branch information
deepsource-autofix[bot] authored Oct 11, 2024
1 parent d70dc90 commit 578ac94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/docker/gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,8 @@ func extractVariables(value string) []string {

// topologicalSort sorts the elements topologically and ensures that equal-level nodes are sorted by name
func topologicalSort(envMap map[string]string) []string {
inDegree := make(map[string]int) // Tracks the in-degree of each node
graph := make(map[string][]string) // Tracks the edges between nodes
inDegree := make(map[string]int) // Tracks the in-degree of each node
graph := make(map[string][]string) // Tracks the edges between nodes
result := make([]string, 0, len(envMap)) // Result slice pre-allocated for efficiency

gl := 0
Expand Down

0 comments on commit 578ac94

Please sign in to comment.