refactor: Clean up code by removing unnecessary whitespace and improving readability
This commit is contained in:
@@ -70,7 +70,7 @@ class Activity {
|
||||
/// Vérifie si tous les participants du voyage ont voté positivement pour cette activité
|
||||
bool isApprovedByAllParticipants(List<String> tripParticipants) {
|
||||
if (tripParticipants.isEmpty) return false;
|
||||
|
||||
|
||||
// Tous les participants doivent avoir voté
|
||||
for (String participantId in tripParticipants) {
|
||||
if (!votes.containsKey(participantId)) {
|
||||
@@ -80,7 +80,7 @@ class Activity {
|
||||
return false; // Quelqu'un a voté négativement ou neutre
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return true; // Tous ont voté positivement
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ class Activity {
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'Activity(id: $id, name: $name, category: $category, votes: ${totalVotes})';
|
||||
return 'Activity(id: $id, name: $name, category: $category, votes: $totalVotes)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -245,4 +245,4 @@ enum PriceLevel {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user