dice icon indicating copy to clipboard operation
dice copied to clipboard

Fix unreachable code in stormSet function

Open Thedarkmatter10 opened this issue 1 year ago • 1 comments

Describe the bug The bug is related to unreachable code in the function stormSet.

To Reproduce Steps to reproduce the behavior:

  1. Call the stormSet function.
  2. 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.

Thedarkmatter10 avatar Apr 17 '24 06:04 Thedarkmatter10

i want to work on this issue @Thedarkmatter10 can you please assign it to me

divyansh-prks avatar Jul 26 '24 07:07 divyansh-prks

@Thedarkmatter10 @JyotinderSingh This seems to be already closed.

Rajan-226 avatar Aug 21 '24 07:08 Rajan-226