Skip to content

Commit ce2c94a

Browse files
committed
Simplify return statement
1 parent e80c477 commit ce2c94a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Rubberduck.VBEEditor/SafeComWrappers/VBA/Reference.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,15 @@ public string FullPath
4444
{
4545
get
4646
{
47-
string fullPath;
48-
4947
try
5048
{
51-
fullPath = IsBroken ? string.Empty : Target.FullPath;
49+
return IsBroken ? string.Empty : Target.FullPath;
5250
}
5351
catch (System.Runtime.InteropServices.COMException)
5452
{
5553

56-
fullPath = string.Empty;
54+
return string.Empty;
5755
}
58-
59-
return fullPath;
6056
}
6157
}
6258

0 commit comments

Comments
 (0)