![]() |
阳刚的路灯 · String.raw() - ...· 5 天前 · |
![]() |
阳刚的红茶 · android 图片加载库 Glide ...· 5 天前 · |
![]() |
粗眉毛的硬币 · 通过Java ...· 3 天前 · |
![]() |
温柔的杨桃 · Go语言中的交互式CLI开发:survey库 ...· 昨天 · |
![]() |
大鼻子的弓箭 · GO:交互式命令行工具 survey开发者社区· 昨天 · |
![]() |
酒量大的拖把 · Java中无法将BLOB转换为字符串:And ...· 1 年前 · |
![]() |
怕老婆的海豚 · el-input ...· 2 年前 · |
![]() |
没人理的绿豆 · React中的闭包陷阱以及使用useRef姿 ...· 2 年前 · |
![]() |
一身肌肉的镜子 · Removing named ...· 2 年前 · |
![]() |
睿智的香菇 · sp_describe_first_resu ...· 2 年前 · |
Long story short , you must move your return results ; statement at the end of the function.
In this case , you must also declare the results variable somewhere at the start of the function not inside any code block
Let me know if it works fine
Thanks and Regards,
Shiva RV
All Answers
I think it is a simple code issue
Just make your return results; statment at the end before the last " } " . I mean by before closing the function write your return results so you must also initailize your result variable at the start of the function and not inside any block of code.
This error pops up because the function is suppose to return string but in some branch section of your code it doesn't return anything
Let me if the solution helps.
Thanks and Regards,
Shiva RV
I'm not sure what you mean. I should move my results variable definition to ouside my if statement?
Long story short , you must move your return results ; statement at the end of the function.
In this case , you must also declare the results variable somewhere at the start of the function not inside any code block
Let me know if it works fine
Thanks and Regards,
Shiva RV