Skip to content

Commit

Permalink
Added back a comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverLok committed Dec 3, 2024
1 parent 0b206e8 commit 73b775b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/call-api-endpoint/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func main() {

request := map[string]any{}
for _, arg := range args.Parameters {
// Split the parameter into it's key and value.
parts := strings.SplitN(arg, ":", 2)
if len(parts) != 2 {
log.Fatal("Invalid parameter format: missing a colon. Expected format is 'key:value', e.g., 'id:123'.", log.NewAttr("parameter", parts))
Expand Down

0 comments on commit 73b775b

Please sign in to comment.