add todo for naked return

This commit is contained in:
William Banfield
2022-03-08 17:26:53 -05:00
parent 4f890ecff5
commit 7eb766144e
+4
View File
@@ -1346,6 +1346,10 @@ func (cs *State) isProposalComplete() bool {
}
// TODO: createProposalBlock should not naked return
// It has two cases that appear to be error cases, but nothing is returned during
// these cases.
// Create the next block to propose and return it. Returns nil block upon error.
//
// We really only need to return the parts, but the block is returned for