Skip to content

Commit

Permalink
Simplify expression
Browse files Browse the repository at this point in the history
  • Loading branch information
rkervella committed Feb 8, 2025
1 parent 2e0fab3 commit e5e589e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/core/rtunnels/rtunnels.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ func DeletePending(sessionID string) {

func Check(sessionID string, connStr string) bool {
if val, ok := pending.Load(sessionID); ok {
if val == connStr {
return true
}
return val == connStr
}
return false
}
Expand Down

0 comments on commit e5e589e

Please # to comment.