Skip to content

Commit

Permalink
cleanup: remove redundant condition (#183)
Browse files Browse the repository at this point in the history
DriverManager/SQLGetDiagField.c:584:26: warning: Identical inner 'if' condition is always true. [identicalInnerCondition]
DriverManager/SQLGetDiagField.c:612:26: warning: Identical inner 'if' condition is always true. [identicalInnerCondition]
  • Loading branch information
chipitsine authored Oct 6, 2024
1 parent 4c8b9e9 commit d20dd0e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions DriverManager/SQLGetDiagField.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,10 +580,7 @@ static SQLRETURN extract_sql_error_field( EHEAD *head,
* map 3 to 2 if required
*/
if ( diag_info_ptr )
{
if ( diag_info_ptr )
__map_error_state( diag_info_ptr, __get_version( head ));
}
__map_error_state( diag_info_ptr, __get_version( head ));
}

return ret;
Expand All @@ -608,10 +605,7 @@ static SQLRETURN extract_sql_error_field( EHEAD *head,
* map 3 to 2 if required
*/
if ( diag_info_ptr )
{
if ( diag_info_ptr )
__map_error_state( diag_info_ptr, __get_version( head ));
}
__map_error_state( diag_info_ptr, __get_version( head ));
}

return ret;
Expand Down

0 comments on commit d20dd0e

Please sign in to comment.