Skip to content

Commit

Permalink
chore:fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dstrates authored Dec 20, 2023
1 parent 5469da8 commit afa2993
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cloudwatch/channel_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ func findChannelIDInMap(channelMapValue string, functionName string) (string, er
}

// find the channel ID with the longest prefix match on the function name
channeID := ""
channelID := ""
longestPrefix := ""

for prefix, channel := range channelMap {
if strings.HasPrefix(functionName, prefix) && len(prefix) > len(longestPrefix) {
channeID = channel
channelID = channel
longestPrefix = prefix
}
}

return channeID, nil
return channelID, nil
}

0 comments on commit afa2993

Please sign in to comment.