server icon indicating copy to clipboard operation
server copied to clipboard

Return null for non-existent customer IDs in getCustomerId function

Open coderabbitai[bot] opened this issue 1 year ago • 0 comments
trafficstars

Consider returning null instead of -1 for non-existent customer IDs in the getCustomerId function. Returning -1 may lead to confusion if customerId is expected to be a non-negative number. \n\nFor more details, see the discussion in PR #2037 and the specific comment.

coderabbitai[bot] avatar Aug 22 '24 08:08 coderabbitai[bot]