Skip to content

Commit 3b4cd96

Browse files
committed
Simpler code
1 parent 18c726e commit 3b4cd96

File tree

1 file changed

+2
-16
lines changed
  • Provider/src/FirebirdSql.Data.FirebirdClient/FirebirdClient

1 file changed

+2
-16
lines changed

Provider/src/FirebirdSql.Data.FirebirdClient/FirebirdClient/FbCommand.cs

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -100,27 +100,13 @@ public override int CommandTimeout
100100
[Browsable(false)]
101101
public string CommandPlan
102102
{
103-
get
104-
{
105-
if (_statement != null)
106-
{
107-
return _statement.GetExecutionPlan();
108-
}
109-
return null;
110-
}
103+
get { return _statement?.GetExecutionPlan(); }
111104
}
112105

113106
[Browsable(false)]
114107
public string CommandExplainedPlan
115108
{
116-
get
117-
{
118-
if (_statement != null)
119-
{
120-
return _statement.GetExecutionExplainedPlan();
121-
}
122-
return null;
123-
}
109+
get { return _statement?.GetExecutionExplainedPlan(); }
124110
}
125111

126112
[Category("Behavior")]

0 commit comments

Comments
 (0)