Skip to content

Commit

Permalink
Remove unnecessary check for NULL pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
larskanis committed Apr 27, 2023
1 parent 2238724 commit 2b09abb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ext/pg_type_map_by_column.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,7 @@ pg_tmbc_init(VALUE self, VALUE conv_ary)
t_pg_coder *p_coder;
/* Check argument type and store the coder pointer */
TypedData_Get_Struct(obj, t_pg_coder, &pg_coder_type, p_coder);
if( p_coder ){
RB_OBJ_WRITTEN(self, Qnil, p_coder->coder_obj);
}
RB_OBJ_WRITTEN(self, Qnil, p_coder->coder_obj);
this->convs[i].cconv = p_coder;
}
}
Expand Down

0 comments on commit 2b09abb

Please sign in to comment.