Skip to content

Commit 6f05666

Browse files
gewarrenrobbyc073
andauthored
Apply suggestions from code review
Co-authored-by: Rob <[email protected]>
1 parent de1360f commit 6f05666

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

snippets/cpp/VS_Snippets_Remoting/NclMailASync/cpp/mailasync.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ int main(array<String^>^ args)
7676
String^ answer = Console::ReadLine();
7777
// If the user canceled the send, and mail hasn't been
7878
// sent yet,then cancel the pending operation.
79-
if (!answer->ToLower()->StartsWith("c") && mailSent)
79+
if (answer->ToLower()->StartsWith("c") && !mailSent)
8080
{
8181
client->SendAsyncCancel();
8282
}

snippets/csharp/System.IdentityModel.Tokens/IssuerNameRegistry/Overview/scripts/microsoftmvcajax.debug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ Sys.Mvc.MvcHelpers._onComplete = function Sys_Mvc_MvcHelpers$_onComplete(request
309309
/// <param name="ajaxContext" type="Sys.Mvc.AjaxContext">
310310
/// </param>
311311
ajaxContext.set_response(request.get_executor());
312-
if (!ajaxOptions.onComplete && ajaxOptions.onComplete(ajaxContext)) {
312+
if (ajaxOptions.onComplete && !ajaxOptions.onComplete(ajaxContext)) {
313313
return;
314314
}
315315
var statusCode = ajaxContext.get_response().get_statusCode();

0 commit comments

Comments
 (0)