Skip to content

Commit 55c159e

Browse files
authored
Merge pull request #12 from alexbondar92/alexb/IG-18457
IG-18457: bugfix put records error response check - fix
2 parents f6d1602 + 471cf1a commit 55c159e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/v3ctl/stream/createrecord.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ func newCreateRecordCommandeer(createStreamCommandeer *createStreamCommandeer) (
6060
return errors.Wrap(err, "Failed to get create stream")
6161
}
6262

63-
putRecordsResponse, ok := response.Output.(v3io.PutRecordsOutput)
64-
if ok && putRecordsResponse.FailedRecordCount != 0 {
63+
putRecordsResponse := response.Output.(*v3io.PutRecordsOutput)
64+
if putRecordsResponse.FailedRecordCount != 0 {
6565
return errors.Errorf("Failed to put all records, FailedRecordCount: %d",
6666
putRecordsResponse.FailedRecordCount)
6767
}

0 commit comments

Comments
 (0)