Skip to content

Commit

Permalink
feat: command id generator support
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <[email protected]>
  • Loading branch information
chen-keinan authored and simar7 committed Jun 5, 2024
1 parent 0f7d945 commit 663383b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/command__id/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ func GetCommandIDRange() ([]bool, error) {
if commandMap, ok := commandArr[0].(map[any]any); ok {
if id, ok := commandMap["id"]; ok {
idStr := id.(string)
idWithPrefix := strings.TrimPrefix(idStr, "CMD-")
idNum, err := strconv.Atoi(idWithPrefix)
idWithoutPrefix := strings.TrimPrefix(idStr, "CMD-")
idNum, err := strconv.Atoi(idWithoutPrefix)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 663383b

Please sign in to comment.