Skip to content

Commit b57a9c6

Browse files
elpasonyalldawson
authored andcommittedMar 6, 2023
tidy
1 parent a4fc2b5 commit b57a9c6

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed
 

‎src/core/providers/ogr/qgsogrprovider.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2168,15 +2168,9 @@ bool QgsOgrProvider::changeAttributeValues( const QgsChangedAttributesMap &attr_
21682168
// But this is undesirable in general, so don't do this when we know that
21692169
// we don't need to.
21702170
bool mayNeedResetReadingAfterGetFeature = true;
2171-
if ( mGDALDriverName == QLatin1String( "ESRI Shapefile" ) )
2172-
{
2173-
mayNeedResetReadingAfterGetFeature = false;
2174-
}
2175-
else if ( mGDALDriverName == QLatin1String( "GPKG" ) )
2176-
{
2177-
mayNeedResetReadingAfterGetFeature = false;
2178-
}
2179-
else if ( mGDALDriverName == QLatin1String( "CSV" ) )
2171+
if ( mGDALDriverName == QLatin1String( "ESRI Shapefile" ) ||
2172+
mGDALDriverName == QLatin1String( "GPKG" ) ||
2173+
mGDALDriverName == QLatin1String( "CSV" ) )
21802174
{
21812175
mayNeedResetReadingAfterGetFeature = false;
21822176
}

0 commit comments

Comments
 (0)
Please sign in to comment.