Skip to content

Commit

Permalink
break the loop when there is a response
Browse files Browse the repository at this point in the history
  • Loading branch information
shaswot77 committed Apr 16, 2024
1 parent 9c4648d commit d50b299
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/provider/client_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ func (c *SquaredUpClient) GetNodes(dataSourceId string, nodeName string, allowNu
}

gremlinQueryResults = response.GremlinQueryResults
break

}

return gremlinQueryResults, nil
Expand Down

0 comments on commit d50b299

Please sign in to comment.