Skip to content

Instantly share code, notes, and snippets.

@rofr
Created September 1, 2017 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rofr/93c6bf996c5453a6712d0ce098f76b6f to your computer and use it in GitHub Desktop.
Save rofr/93c6bf996c5453a6712d0ce098f76b6f to your computer and use it in GitHub Desktop.
Would you put the second return statement in an else block?
public object Execute(Client<T> client, MethodCall methodCall, string signature)
{
if (IsMapped && TryGetMappedOperation(methodCall, out var mappedOperation))
{
return ExecuteMapped(client, methodCall, mappedOperation);
}
return ExecuteImpl(client, methodCall, signature);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment