Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentyn Kahamlyk authored and Valentyn Kahamlyk committed Jan 12, 2024
1 parent 361b8bd commit 8e47286
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gremlin-go/driver/resultSet.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ func (channelResultSet *channelResultSet) Channel() chan *Result {
// The value of ok is true if the value received was delivered by a successful send operation to the channel,
// or false if it is a zero value generated because the channel is closed and empty.
func (channelResultSet *channelResultSet) One() (*Result, bool, error) {
if channelResultSet.err != nil {
err := channelResultSet.err
if err != nil {
return nil, false, channelResultSet.err
}
result, ok := <-channelResultSet.channel
Expand Down

0 comments on commit 8e47286

Please sign in to comment.