File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -147,8 +147,9 @@ -(void) LoadSimulatorFramework:(NSString*) developerDir {
147
147
// Check the env first.
148
148
NSDictionary * env = [[NSProcessInfo processInfo ] environment ];
149
149
NSString * developerDir = [env objectForKey: @" DEVELOPER_DIR" ];
150
- if ([developerDir length ] > 0 )
150
+ if ([developerDir length ] > 0 ) {
151
151
return developerDir;
152
+ }
152
153
153
154
// Go look for it via xcode-select.
154
155
NSTask * xcodeSelectTask = [[[NSTask alloc ] init ] autorelease ];
@@ -168,8 +169,9 @@ -(void) LoadSimulatorFramework:(NSString*) developerDir {
168
169
encoding: NSUTF8StringEncoding] autorelease ];
169
170
output = [output stringByTrimmingCharactersInSet:
170
171
[NSCharacterSet whitespaceAndNewlineCharacterSet ]];
171
- if ([output length ] == 0 )
172
+ if ([output length ] == 0 ) {
172
173
output = nil ;
174
+ }
173
175
return output;
174
176
}
175
177
You can’t perform that action at this time.
0 commit comments