Skip to content

Commit

Permalink
Moved assignment out of "if" condition to make clearer and quiet warn…
Browse files Browse the repository at this point in the history
…ing.
  • Loading branch information
aburgh committed Aug 24, 2010
1 parent c78b9e5 commit 6abf8fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/AttachDiskImageController.m
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ - (BOOL)getDiskImageEncryptionStatus:(BOOL *)outFlag atPath:(NSString *)path err

isOK = [self getDiskImagePropertyList:&plist atPath:path command:@"isencrypted" password:nil error:outError];
if (isOK) {
if (value = [plist objectForKey:@"encrypted"]) {
value = [plist objectForKey:@"encrypted"];
if (value) {
*outFlag = [value boolValue];
}
else {
Expand Down

0 comments on commit 6abf8fa

Please sign in to comment.