Skip to content

Commit 56bc431

Browse files
fix(ssh): drop unnecessary null assertions on tunnel session
Fixes Code Analysis failure (unnecessary_non_null_assertion). Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
1 parent 692d440 commit 56bc431

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/core/security/ssh_tunnel_manager.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ class SshTunnelManager {
400400
(_) async {
401401
if (client.isClosed) {
402402
if (session != null) {
403-
await _dropZombieSession(session!);
403+
await _dropZombieSession(session);
404404
}
405405
return;
406406
}
@@ -411,7 +411,7 @@ class SshTunnelManager {
411411
failedPings++;
412412
if (failedPings >= _maxKeepAlivePingFailures) {
413413
if (session != null) {
414-
await _dropZombieSession(session!);
414+
await _dropZombieSession(session);
415415
}
416416
}
417417
}

0 commit comments

Comments
 (0)