Skip to content

Commit b50ed8d

Browse files
committed
Fixes SonarCloud warnings
1 parent 648178b commit b50ed8d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/DbfDataReader/DbfDataReader.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ public override void Close()
5757

5858
protected override void Dispose(bool disposing)
5959
{
60+
base.Dispose(disposing);
61+
6062
if (disposing)
6163
{
6264
Close();
@@ -116,10 +118,6 @@ public override long GetChars(int ordinal, long dataOffset, char[] buffer, int b
116118

117119
public override string GetDataTypeName(int ordinal)
118120
{
119-
if (ordinal >= DbfTable.Columns.Count)
120-
{
121-
throw new IndexOutOfRangeException();
122-
}
123121
var dbfColumn = DbfTable.Columns[ordinal];
124122
return dbfColumn.ColumnType.ToString();
125123
}

0 commit comments

Comments
 (0)