Skip to content

Commit

Permalink
Simplify parseVPNConnJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
jyyi1 committed Jan 16, 2025
1 parent 15e1735 commit 4a2c58d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions client/electron/vpn_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@ function parseVPNConnJSON(json: string): VPNConn | null {
if (!('id' in rawConn) || !rawConn.id || !('status' in rawConn)) {
return null;
}
if (!('status' in rawConn) || !rawConn.status) {
return null;
}
return {
id: rawConn.id,
status: rawConn.status,
Expand Down

0 comments on commit 4a2c58d

Please sign in to comment.