summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-02-26 13:20:43 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-02-26 13:20:43 +0900
commitef00c6da884499c8fab8531a3780e547e87c04fa (patch)
tree3a916b0415e1a3bebabb8ebc983bef3d37588ed2 /win32
parent672b81b090fb346b71f1c8e87a51a7c33f239df4 (diff)
downloadruby-ef00c6da884499c8fab8531a3780e547e87c04fa.tar.gz
Adjust `else` style to be consistent in each files [ci skip]
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c
index ca62fe6c6d..e1741c0522 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -5894,11 +5894,13 @@ winnt_stat(const WCHAR *path, struct stati128 *st, BOOL lstat)
if (e && attr_info.ReparseTag == IO_REPARSE_TAG_AF_UNIX) {
st->st_size = 0;
mode |= S_IFSOCK;
- } else if (rb_w32_reparse_symlink_p(path)) {
+ }
+ else if (rb_w32_reparse_symlink_p(path)) {
/* TODO: size in which encoding? */
st->st_size = 0;
mode |= S_IFLNK | S_IEXEC;
- } else {
+ }
+ else {
mode |= S_IFDIR | S_IEXEC;
}
}