summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-27 10:20:56 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-27 10:20:56 +0900
commit0c6f36668a11902903d85ada61a812d297d02de5 (patch)
tree0e976fcb5b4291258fa80c8f07249cad99d49cc6 /file.c
parent293c6c8cc3cd9a9cb2910672589ee3631e1f1653 (diff)
Adjusted spaces [ci skip]
Diffstat (limited to 'file.c')
-rw-r--r--file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/file.c b/file.c
index 1c14c7e702..b0056b0f99 100644
--- a/file.c
+++ b/file.c
@@ -4365,7 +4365,7 @@ rb_check_realpath_internal(VALUE basedir, VALUE path, enum rb_realpath_mode mode
}
unresolved_path = TO_OSPATH(unresolved_path);
- if((resolved_ptr = realpath(RSTRING_PTR(unresolved_path), NULL)) == NULL) {
+ if ((resolved_ptr = realpath(RSTRING_PTR(unresolved_path), NULL)) == NULL) {
/* glibc realpath(3) does not allow /path/to/file.rb/../other_file.rb,
returning ENOTDIR in that case.
glibc realpath(3) can also return ENOENT for paths that exist,
@@ -4398,9 +4398,9 @@ rb_check_realpath_internal(VALUE basedir, VALUE path, enum rb_realpath_mode mode
rb_enc_associate(resolved, origenc);
}
- if(rb_enc_str_coderange(resolved) == ENC_CODERANGE_BROKEN) {
+ if (rb_enc_str_coderange(resolved) == ENC_CODERANGE_BROKEN) {
rb_enc_associate(resolved, rb_filesystem_encoding());
- if(rb_enc_str_coderange(resolved) == ENC_CODERANGE_BROKEN) {
+ if (rb_enc_str_coderange(resolved) == ENC_CODERANGE_BROKEN) {
rb_enc_associate(resolved, rb_ascii8bit_encoding());
}
}