Skip to content

Commit 4d566f2

Browse files
committed
fix nilerr issues
1 parent a989b40 commit 4d566f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/grpcwrapper/rawtopic/describe_topic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type DescribeTopicResult struct {
4343

4444
func (res *DescribeTopicResult) FromProto(protoResponse *Ydb_Topic.DescribeTopicResponse) error {
4545
if err := res.Operation.FromProtoWithStatusCheck(protoResponse.Operation); err != nil {
46-
return nil
46+
return err
4747
}
4848

4949
protoResult := &Ydb_Topic.DescribeTopicResult{}

internal/grpcwrapper/rawydb/issues.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func (issuesPointer *Issues) FromProto(p []*Ydb_Issue.IssueMessage) error {
1717
issues := *issuesPointer
1818
for i := range issues {
1919
if err := issues[i].FromProto(p[i]); err != nil {
20-
return nil
20+
return err
2121
}
2222
}
2323
return nil

0 commit comments

Comments
 (0)