Fix formatting

This commit is contained in:
atmaxinger 2018-02-25 17:01:12 +01:00
parent a2e163fea9
commit 4f14c44837

View File

@ -413,8 +413,7 @@ static NSString *makeRelativeIfNecessary(NSString *path)
NSString *p = [NSString stringWithUTF8String: path];
if (![p hasPrefix:@"/dev/"]) {
PrefsRemoveItem("cdrom", index);
}
else {
} else {
// only increase the index if the current entry has not been deleted
// if it has been deleted, the next entry is on the current entrys index
index++;