fix(storageminer): fix conditional

This commit is contained in:
hannahhoward
2021-12-22 13:41:56 -08:00
parent ced22687eb
commit 8a923fb420
+1 -1
View File
@@ -636,7 +636,7 @@ func (tc *transferConverter) convertTransfer(channelID datatransfer.ChannelID, h
stateString = "no graphsync state found"
}
var channelIDPtr *datatransfer.ChannelID
if hasChannelID {
if !hasChannelID {
diagnostics = append(diagnostics, fmt.Sprintf("No data transfer channel id for GraphSync request ID %d", requestID))
} else {
channelIDPtr = &channelID