Skip to content

Commit 56e716e

Browse files
committed
Fix formatting
1 parent d5f4cc3 commit 56e716e

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

projects/RabbitMQ.Client/client/api/PublicationAddress.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,17 @@ public static bool TryParse(string uriLikeString, out PublicationAddress result)
125125
{
126126
result = null;
127127
return false;
128-
} else {
129-
try {
128+
}
129+
else
130+
{
131+
try
132+
{
130133
var res = Parse(uriLikeString);
131134
result = res;
132135
return true;
133-
} catch {
136+
}
137+
catch
138+
{
134139
result = null;
135140
return false;
136141
}

projects/RabbitMQ.Client/client/impl/BasicProperties.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ public bool Persistent
115115
/// </summary>
116116
public PublicationAddress ReplyToAddress
117117
{
118-
get {
118+
get
119+
{
119120
PublicationAddress result;
120121
PublicationAddress.TryParse(ReplyTo, out result);
121122
return result;

projects/Unit/TestBasicProperties.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ public void TestNullableProperties_CanWrite(
122122
}
123123

124124
[Test]
125-
public void TestProperties_ReplyTo(
126-
[Values(null, "foo_1", "fanout://name/key")] string replyTo
127-
)
125+
public void TestProperties_ReplyTo([Values(null, "foo_1", "fanout://name/key")] string replyTo)
128126
{
129127
// Arrange
130128
var subject = new Framing.BasicProperties

0 commit comments

Comments
 (0)