Skip to content

Commit

Permalink
fixes dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
ShishirRijal committed Oct 23, 2023
1 parent 2914097 commit 24caa55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lib/infrastructure/create_home/create_home_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,9 @@ class CreateHomeRepository implements ICreateHomeRepository {
// log.error(e.toString());
return left(CreateHomeFailure.unexpected(failedValue: e.message));
}
} catch (error) {
return left(CreateHomeFailure.unexpected(failedValue: error.toString()));
}
return left(
const CreateHomeFailure.unexpected(failedValue: 'Not implemented yet'),
);
}

@override
Expand Down
1 change: 0 additions & 1 deletion lib/infrastructure/manage_wifi/manage_wifi_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ class ManageWiFiRepository implements IManageNetworkRepository {
// if (isAPEnabled || true) {
return right(unit);
// }
return left(const HomeUserFailures.accessPointIsNotOpen());
} catch (e) {
return left(const HomeUserFailures.unexpected());
}
Expand Down

0 comments on commit 24caa55

Please sign in to comment.