summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml4
-rw-r--r--src/SendGrid/Client.cs2
2 files changed, 2 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 114b8da..eea3e1f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,8 +33,8 @@ before_script:
- nohup prism run -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/oai_stoplight.json &
script:
- - if [ -n "${DOTNETCORE}" ]; then mkdir bla && cd bla && dotnet new && time dotnet restore && dotnet run; fi
- - if [ -z "${DOTNETCORE}" ]; then mkdir bla && cd bla && dotnet new && time dotnet restore; fi
+ - if [ -n "${DOTNETCORE}" ]; then dotnet restore && dotnet build ./src/SendGrid -c Release; fi
+ - if [ -z "${DOTNETCORE}" ]; then dotnet restore && dotnet build ./src/SendGrid -c Release; fi
- if [ -z "${DOTNETCORE}" ]; then xbuild /p:Configuration=Release SendGrid.sln; fi
- if [ -z "${DOTNETCORE}" ]; then ./testrunner/NUnit.Runners.3.2.0/tools/nunit-console.exe ./UnitTest/bin/Release/UnitTest.dll; fi
diff --git a/src/SendGrid/Client.cs b/src/SendGrid/Client.cs
index fe4996b..5711a52 100644
--- a/src/SendGrid/Client.cs
+++ b/src/SendGrid/Client.cs
@@ -189,10 +189,8 @@ namespace SendGrid
PreAuthenticate = true,
UseDefaultCredentials = false,
};
-
return new HttpClient(httpClientHandler);
}
-
return new HttpClient();
}