2
0

Remove barely used ProtocolError type

This commit is contained in:
Jack Christensen
2019-08-27 18:31:54 -05:00
parent 863b41aaa6
commit 4a320500cf
2 changed files with 1 additions and 8 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ func (rows *connRows) nextColumn() ([]byte, *pgproto3.FieldDescription, bool) {
return nil, nil, false
}
if len(rows.FieldDescriptions()) <= rows.columnIdx {
rows.fatal(ProtocolError("No next column available"))
rows.fatal(errors.New("No next column available"))
return nil, nil, false
}