Skip to content

Commit d4f89db

Browse files
CLD-769: Lint
1 parent 55fa64f commit d4f89db

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

datastore/catalog/remote/grpc.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package remote
22

33
import (
44
"context"
5+
"errors"
56
"fmt"
67
"sync"
78
"time"
@@ -93,12 +94,13 @@ func (c *CatalogClient) CloseStream() error {
9394
// Close closes the underlying gRPC connection.
9495
func (c *CatalogClient) Close() error {
9596
if c.cachedStream != nil {
96-
return fmt.Errorf("stream is not closed")
97+
return errors.New("stream is not closed")
9798
}
9899

99100
if c.conn != nil {
100101
return c.conn.Close()
101102
}
103+
102104
return nil
103105
}
104106

0 commit comments

Comments
 (0)