Skip to content

Commit

Permalink
remove unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
Wbert Castro committed Mar 25, 2024
1 parent a980593 commit dcce70d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ext/nokogiri/xml_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,6 @@ rb_xml_reader_encoding(VALUE rb_reader)
constructor_encoding = rb_iv_get(rb_reader, "@encoding");
if (RTEST(constructor_encoding)) {
return constructor_encoding;
} else {
rb_iv_set(self, "@encoding", NOKOGIRI_STR_NEW2("UTF-8"));
}

Data_Get_Struct(rb_reader, xmlTextReader, c_reader);
Expand Down

0 comments on commit dcce70d

Please sign in to comment.