|
|
机灵的鸡蛋面 · All XLA Options/Flags ...· 4 天前 · |
|
|
爱看书的小狗 · Kotlin-Java 互通性指南 | ...· 昨天 · |
|
|
稳重的豆腐 · Neutrino's Blog: ...· 18 小时前 · |
|
|
悲伤的长颈鹿 · 在MongoDB中增删字段真的这么简单? ...· 1小时前 · |
|
|
耍酷的大象 · 奇安信攻防社区-Jackson中Json隐式 ...· 1小时前 · |
|
|
胡子拉碴的感冒药 · 如何通過text渲染指定樣式的文本 - ...· 4 月前 · |
|
|
阳光的蟠桃 · 通过浏览器无客户端访问内网应用 - ...· 6 月前 · |
|
|
有胆有识的牛肉面 · 平湖市人民政府关于印发平湖市贯彻浙江省推动经 ...· 1 年前 · |
|
|
玩足球的稀饭 · 2024年全国硕士研究生招生考试 ...· 1 年前 · |
|
|
风度翩翩的柿子 · 联想笔记本电脑解决摄像头打开是灰色的问题_t ...· 1 年前 · |
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