Skip to content

Commit

Permalink
Merge pull request #690 from ShishirRijal/dev
Browse files Browse the repository at this point in the history
fixes dead code
  • Loading branch information
guyluz11 authored Oct 23, 2023
2 parents f209b5a + 24caa55 commit 462be93
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 462be93

Please sign in to comment.