Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Slate/ActivateSnapshotOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ - (void)parseOption:(NSString *)_name value:(id)value {
@throw([NSException exceptionWithName:[NSString stringWithFormat:@"Invalid %@", _name] reason:[NSString stringWithFormat:@"Invalid %@ '%@'", _name, value] userInfo:nil]);
return;
}
[self setName:_name];
[self setName:value];
} else if ([_name isEqualToString:OPT_DELETE]) {
if (![value isKindOfClass:[NSValue class]] && ![value isKindOfClass:[NSString class]] && ![value isKindOfClass:[NSNumber class]]) {
@throw([NSException exceptionWithName:[NSString stringWithFormat:@"Invalid %@", _name] reason:[NSString stringWithFormat:@"Invalid %@ '%@'", _name, value] userInfo:nil]);
Expand Down
2 changes: 1 addition & 1 deletion Slate/DeleteSnapshotOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ - (void)parseOption:(NSString *)_name value:(id)value {
@throw([NSException exceptionWithName:[NSString stringWithFormat:@"Invalid %@", _name] reason:[NSString stringWithFormat:@"Invalid %@ '%@'", _name, value] userInfo:nil]);
return;
}
[self setName:_name];
[self setName:value];
} else if ([_name isEqualToString:OPT_ALL]) {
if (![value isKindOfClass:[NSValue class]] && ![value isKindOfClass:[NSString class]] && ![value isKindOfClass:[NSNumber class]]) {
@throw([NSException exceptionWithName:[NSString stringWithFormat:@"Invalid %@", _name] reason:[NSString stringWithFormat:@"Invalid %@ '%@'", _name, value] userInfo:nil]);
Expand Down
2 changes: 1 addition & 1 deletion Slate/SnapshotOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ - (void)parseOption:(NSString *)_name value:(id)value {
@throw([NSException exceptionWithName:[NSString stringWithFormat:@"Invalid %@", _name] reason:[NSString stringWithFormat:@"Invalid %@ '%@'", _name, value] userInfo:nil]);
return;
}
[self setName:_name];
[self setName:value];
} else if ([_name isEqualToString:OPT_SAVE]) {
if (![value isKindOfClass:[NSValue class]] && ![value isKindOfClass:[NSString class]] && ![value isKindOfClass:[NSNumber class]]) {
@throw([NSException exceptionWithName:[NSString stringWithFormat:@"Invalid %@", _name] reason:[NSString stringWithFormat:@"Invalid %@ '%@'", _name, value] userInfo:nil]);
Expand Down