Skip to content

Commit

Permalink
return in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
git-elliot committed Nov 18, 2024
1 parent 4748ecf commit 06b88a1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class HostScanBloc extends Bloc<HostScanEvent, HostScanState> {
}
if (gatewayIp == null) {
emit(const HostScanState.error());
return;
}
subnet = gatewayIp!.substring(0, gatewayIp!.lastIndexOf('.'));
}
Expand Down

0 comments on commit 06b88a1

Please sign in to comment.