Skip to content

Commit f62eced

Browse files
committed
Updated style with braces on if statements
1 parent 35b3f36 commit f62eced

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CoreFoundation/Base.subproj/CFPlatform.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,10 @@ CF_EXPORT CFStringRef CFCopyUserName(void) {
284284
#else
285285
#error Dont know how to compute user name on this platform
286286
#endif
287-
if (!result)
287+
if (!result) {
288288
result = (CFStringRef)CFRetain(CFSTR(""));
289+
}
290+
289291
return result;
290292
}
291293

@@ -301,8 +303,9 @@ CF_EXPORT CFStringRef CFCopyFullUserName(void) {
301303
#else
302304
#error Don't know how to compute full user name on this platform
303305
#endif
304-
if (!result)
306+
if (!result) {
305307
result = (CFStringRef)CFRetain(CFSTR(""));
308+
}
306309

307310
return result;
308311
}

0 commit comments

Comments
 (0)