![]() |
冷冷的胡萝卜 · SpringBoot学习笔记(八)——JWT ...· 3 周前 · |
![]() |
刀枪不入的马铃薯 · ASP.NET Core 中的配置 | ...· 2 周前 · |
![]() |
呐喊的书签 · java循环出现异常,不终止程序,继续执行 ...· 1 周前 · |
![]() |
愉快的黄豆 · java中文件名目录名或卷标语法不正确_mo ...· 3 天前 · |
![]() |
长情的椅子 · ASP.NET SignalR 中心 ...· 2 天前 · |
![]() |
可爱的木耳 · SqlServer更改字段类型--varch ...· 4 月前 · |
![]() |
谈吐大方的水煮鱼 · 如何使用SeleniumPython删除元素?· 1 年前 · |
![]() |
火星上的小熊猫 · python 内存泄漏-腾讯云开发者社区-腾讯云· 1 年前 · |
![]() |
傻傻的薯片 · 如何模拟返回值为void的静态方法 - 简书· 1 年前 · |
![]() |
慷慨的奔马 · 有哪些批量文件重命名工具可以推荐? - 知乎· 1 年前 · |
![]() |
爱喝酒的皮带
1 年前 |
![]() |
呐喊的书签 · java循环出现异常,不终止程序,继续执行 - 迷糊桃 1 周前 |
![]() |
谈吐大方的水煮鱼 · 如何使用SeleniumPython删除元素? 1 年前 |
![]() |
火星上的小熊猫 · python 内存泄漏-腾讯云开发者社区-腾讯云 1 年前 |
![]() |
傻傻的薯片 · 如何模拟返回值为void的静态方法 - 简书 1 年前 |
![]() |
慷慨的奔马 · 有哪些批量文件重命名工具可以推荐? - 知乎 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