Skip to content

Commit 884e6dc

Browse files
committed
Update
1 parent 95216ee commit 884e6dc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Tests/CodeAnalysisTest/OrganizeMembersTest.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public bool BoolProp
2525
public string StrProp
2626
{
2727
get => _strProp;
28-
set => _strProp = value + "";
28+
set => _strProp = $"{value}";
2929
}
3030

3131
/// <summary>
@@ -117,8 +117,13 @@ public static void PublicStaticMehtod()
117117

118118
Task IImplicit.TaskMethodAsync(CancellationToken cancellationToken)
119119
{
120-
cancellationToken.ThrowIfCancellationRequested();
120+
if (cancellationToken.IsCancellationRequested)
121+
{
122+
goto rtag;
123+
}
121124

125+
cancellationToken.ThrowIfCancellationRequested();
126+
rtag:
122127
throw new NotImplementedException();
123128
}
124129

0 commit comments

Comments
 (0)