Fix unreachable code in stormSet function
Describe the bug
The bug is related to unreachable code in the function stormSet.
To Reproduce Steps to reproduce the behavior:
- Call the
stormSetfunction. - Observe the "unreachable code" error.
Expected behavior
The function stormSet should execute without any errors, and all code within the function should be reachable and functional.
Additional context
This issue occurs because the conn.Close() statement is unreachable due to a preceding return statement. To fix the issue, we need to rearrange the code or use defer to ensure proper cleanup of resources.
i want to work on this issue @Thedarkmatter10 can you please assign it to me
@Thedarkmatter10 @JyotinderSingh This seems to be already closed.