Skip to content

Commit c7822ea

Browse files
committed
Minor formatting changes and fix warnings
1 parent ae0e719 commit c7822ea

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

FixCode/FixCode.m

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
#import "Aspects.h"
1212
#import "FixCode.h"
1313

14+
@interface NSObject (Shutup)
15+
16+
-(void)_autoLayoutViewViewFrameDidChange:(id)arg0;
17+
18+
@end
19+
20+
#pragma mark -
21+
1422
@interface NSView (Debug)
1523

1624
-(NSString*)_subtreeDescription;
@@ -127,17 +135,15 @@ - (void)swizzleCodeSigningResolution
127135
if (error) {
128136
NSLog(@"Error: %@", error);
129137
}
130-
138+
131139
[objc_getClass("DVTStackView_ML") aspect_hookSelector:@selector(_autoLayoutViewViewFrameDidChange:) withOptions:AspectPositionAfter usingBlock:^(id<AspectInfo> info) {
132140
NSView* view = info.instance;
133-
134-
if([[view.superview nextResponder] isKindOfClass:objc_getClass("Xcode3CodesignTroubleshootingViewController")])
135-
{
141+
142+
if([[view.superview nextResponder] isKindOfClass:objc_getClass("Xcode3CodesignTroubleshootingViewController")]) {
136143
[self findAndReplaceFixIssueButtonInView:view.superview];
137144
}
138145
} error:&error];
139-
140-
146+
141147
if (error) {
142148
NSLog(@"Error: %@", error);
143149
}

0 commit comments

Comments
 (0)