Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
YassinNouh21 committed May 29, 2024
1 parent 39be421 commit f192403
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/src/domain/model/failure/mosque/mosque_failure.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ abstract class MosqueFailure implements Exception {
});
}


class MosqueNotFoundFailure extends MosqueFailure {
const MosqueNotFoundFailure()
: super(
Expand Down
2 changes: 1 addition & 1 deletion lib/src/helpers/Api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Api {
}

static Future<Mosque> getMosque(String id) async {
try{
try {
final response = await dio.get(
'/3.0/mosque/$id/info',
);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/services/mosque_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class MosqueManager extends ChangeNotifier with WeatherMixin, AudioMixin, Mosque

/// if getting item returns an error
onItemError(e, stack) {
if(e is MosqueFailure){
if (e is MosqueFailure) {
mosque = null;
notifyListeners();
return;
Expand Down

0 comments on commit f192403

Please sign in to comment.