Permalink
Browse files

check for SAUCE_ID and set self.fileHasRecord to NO / YES afterwards

  • Loading branch information...
1 parent 372a066 commit 2d244eaca218f8f91d16368ef6b4b9e8d6428447 @ByteProject ByteProject committed Nov 28, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 AnsiLove/Classes/ALSauceMachine.m
@@ -45,8 +45,12 @@ - (void)readRecordFromFile:(NSString *)inputFile
// No Sauce record inside the file? Stop here.
if (strcmp(record->id, SAUCE_ID) != IDENTICAL) {
+ self.fileHasRecord = NO;
return;
}
+ else {
+ self.fileHasRecord = YES;
+ }
// Let us admire the sauce record in NSLog.
// THIS IS JUST FOR TESTING - A BETTER IMPLEMENTATION IS ON THE WAY!

0 comments on commit 2d244ea

Please sign in to comment.