refactor: Clean up code by removing unnecessary whitespace and improving readability
This commit is contained in:
1 parent
9cb21c3470
commit
30dca05e15
8 files changed
+605
-446
No files matched your search
@@ -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