Skip to content

Commit

Permalink
Reword variable name to fix lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: divyansh42 <[email protected]>
  • Loading branch information
divyansh42 authored and tekton-robot committed Nov 12, 2024
1 parent e6717bd commit 76dec09
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/suggestion/suggest.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ func levenshteinDistance(s, t string, ignoreCase bool) int {
if s[i-1] == t[j-1] {
d[i][j] = d[i-1][j-1]
} else {
min := d[i-1][j]
if d[i][j-1] < min {
min = d[i][j-1]
minCost := d[i-1][j]
if d[i][j-1] < minCost {
minCost = d[i][j-1]
}
if d[i-1][j-1] < min {
min = d[i-1][j-1]
if d[i-1][j-1] < minCost {
minCost = d[i-1][j-1]
}
d[i][j] = min + 1
d[i][j] = minCost + 1
}
}

Expand Down

0 comments on commit 76dec09

Please sign in to comment.