Skip to content

Commit

Permalink
Use string interpolation instead of calling Format (#1929)
Browse files Browse the repository at this point in the history
  • Loading branch information
AZero13 authored Oct 4, 2022
1 parent 68c7159 commit 78cd6d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CalculatorUITestFramework/NumberPad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void Input(double number)
this.NegateButton.Click();
break;
default:
throw (new ArgumentException(string.Format("{0} is not valid", digit)));
throw (new ArgumentException($"{digit} is not valid"));
}
}
}
Expand Down

0 comments on commit 78cd6d5

Please sign in to comment.