Skip to content

Commit c931c1d

Browse files
author
Chaitanya Gupta
committed
Remove trailing whitespace
1 parent af65be8 commit c931c1d

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Installation
5656
"Couldn't find momc", you need to help `XCDataModelPrinter` find
5757
the the `momc` binary. You can do this by setting the environment
5858
variable `MOMC_PATH` to the path of the `momc` binary.
59-
59+
6060
Usage
6161
-----
6262

@@ -67,7 +67,7 @@ Typical usage:
6767
Following parameters are supported:
6868

6969
* --compact or -c : change output mode, so when printing properties of a given Entity
70-
its superclasses' properties won't be included.
70+
its superclasses' properties won't be included.
7171

7272
Adding the git-diff driver
7373
--------------------------

src/MOMPrinter.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ - (id)init {
2626
}
2727

2828
- (id)initWithMode:(MOMPrinterPeropertiesOutputMode)mode {
29-
29+
3030
self = [super init];
3131
if (self) {
3232
self._mode = mode;
@@ -142,20 +142,20 @@ - (BOOL)printPath:(NSString *)path {
142142
}
143143
[entityStr appendFormat:@" (%@)", [entity managedObjectClassName]];
144144
NSPrintf(@"%@\n", entityStr);
145-
145+
146146
NSMutableArray *properties = nil;
147-
147+
148148
if (self._mode == MOMPrinterIncludeSuperclassProperties) {
149149
properties = [NSMutableArray arrayWithArray:[entity properties]];
150150
} else {
151151
// Filter out properties that belong to superclasses.
152152
NSSet *superentityProperties = [NSSet setWithArray:[superentity properties]];
153153
NSMutableSet *entityProperties = [NSMutableSet setWithArray:[entity properties]];
154154
[entityProperties minusSet:superentityProperties];
155-
155+
156156
properties = [[entityProperties allObjects] mutableCopy];
157157
}
158-
158+
159159
[properties sortUsingComparator:^(id obj1, id obj2) {
160160
NSNumber *n1 = orderNumberForClassOfProperty(obj1);
161161
NSNumber *n2 = orderNumberForClassOfProperty(obj2);
@@ -166,7 +166,7 @@ - (BOOL)printPath:(NSString *)path {
166166
return result;
167167
}
168168
}];
169-
169+
170170
for (id property in properties) {
171171
const char *name = [[property name] UTF8String];
172172
const char *commonFlags = [commonFlagsStringForProperty(property) UTF8String];

src/main.m

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ int main(int argc, const char * argv[])
1818
@autoreleasepool {
1919
if (argc == 2) {
2020
NSString *path = [NSString stringWithCString:argv[1] encoding:NSUTF8StringEncoding];
21-
21+
2222
return run(path, YES);
23-
23+
2424
} else if (argc == 3) {
2525
NSString *parameter = [NSString stringWithCString:argv[1] encoding:NSASCIIStringEncoding];
2626
if ([parameter isEqualToString:@"--compact"] ||
2727
[parameter isEqualToString:@"-c"] ) {
2828
NSString *path = [NSString stringWithCString:argv[2] encoding:NSUTF8StringEncoding];
29-
29+
3030
return run(path, NO);
3131
}
3232
}
3333
}
34-
34+
3535
NSPrintf(@"Usage: [--compact] %@ path_to_xcdatamodel_file\n", [[NSProcessInfo processInfo] processName]);
3636
return 1;
3737
}
@@ -44,7 +44,7 @@ int run(NSString *path, BOOL includeSuperclassProperites) {
4444
return 2;
4545
}
4646
MOMPrinter *printer = nil;
47-
47+
4848
if (includeSuperclassProperites) {
4949
printer = [[[MOMPrinter alloc] init] autorelease];
5050
} else {
@@ -54,7 +54,6 @@ int run(NSString *path, BOOL includeSuperclassProperites) {
5454
if (![printer printPath:compiledPath]) {
5555
return 2;
5656
}
57-
57+
5858
return 0;
5959
}
60-

0 commit comments

Comments
 (0)