Skip to content

Commit

Permalink
Replace hardcoded name with nameof
Browse files Browse the repository at this point in the history
  • Loading branch information
Banane9 committed Mar 2, 2023
1 parent dc222cc commit bb55910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Harmony/Tools/AccessTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ public static MethodInfo AsyncMoveNext(MethodBase method)
}

var asyncStateMachineType = asyncAttribute.StateMachineType;
var asyncMethodBody = DeclaredMethod(asyncStateMachineType, "MoveNext");
var asyncMethodBody = DeclaredMethod(asyncStateMachineType, nameof(IAsyncStateMachine.MoveNext));
if (asyncMethodBody is null)
{
FileLog.Debug($"AccessTools.AsyncMoveNext: Could not find async method body for {method.FullDescription()}");
Expand Down

0 comments on commit bb55910

Please sign in to comment.