Skip to content

Commit

Permalink
Avoid unnecesaary function return in LocationJumpManager
Browse files Browse the repository at this point in the history
  • Loading branch information
colinkiama committed Nov 28, 2023
1 parent 6af3a76 commit 8b74906
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/LocationJumpManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ namespace Scratch {
var str = match_info.fetch_named (match_name);
int num = 0;

if (str != null && int.try_parse (str, out num)) {
return num;
if (str != null) {
int.try_parse (str, out num);
}

return num;
Expand Down

0 comments on commit 8b74906

Please sign in to comment.