File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -947,9 +947,7 @@ VALUE rb_filesystem_str_new(const char *string, long len) {
947
947
}
948
948
949
949
VALUE rb_filesystem_str_new_cstr (const char * string ) {
950
- VALUE ret ;
951
- ret = rb_external_str_new_with_enc (string , strlen (string ), rb_filesystem_encoding ());
952
- return ret ;
950
+ return rb_external_str_new_with_enc (string , strlen (string ), rb_filesystem_encoding ());
953
951
}
954
952
955
953
VALUE rb_str_export (VALUE string ) {
@@ -1184,9 +1182,7 @@ void rb_tr_add_flags(VALUE value, int flags) {
1184
1182
// Undef conflicting macro from encoding.h like MRI
1185
1183
#undef rb_enc_str_new
1186
1184
VALUE rb_enc_str_new (const char * ptr , long len , rb_encoding * enc ) {
1187
- VALUE ret ;
1188
- ret = RUBY_INVOKE (rb_str_new (ptr , len ), "force_encoding" , rb_enc_from_encoding (enc ));
1189
- return ret ;
1185
+ return RUBY_INVOKE (rb_str_new (ptr , len ), "force_encoding" , rb_enc_from_encoding (enc ));
1190
1186
}
1191
1187
1192
1188
void rb_enc_raise (rb_encoding * enc , VALUE exc , const char * fmt , ...) {
You can’t perform that action at this time.
0 commit comments