From 672e56d0aa6569187fcf3c0884f575befc9b22bc Mon Sep 17 00:00:00 2001 From: Jeff Leung Date: Sun, 8 Jan 2023 00:27:56 -0800 Subject: [PATCH] More cleanup --- .../Controllers/HomeController.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/AS1024.CommunityDocumentationPage/Controllers/HomeController.cs b/AS1024.CommunityDocumentationPage/Controllers/HomeController.cs index 95cdbc8..937be81 100644 --- a/AS1024.CommunityDocumentationPage/Controllers/HomeController.cs +++ b/AS1024.CommunityDocumentationPage/Controllers/HomeController.cs @@ -32,11 +32,12 @@ namespace AS1024.CommunityDocumentationPage.Controllers [NonAction] protected Uri BuildNetBoxURI() { - var endUrl = new UriBuilder(); - - endUrl.Path = "/api/ipam/route-targets"; - endUrl.Host = Configuration["NetBoxHost"]; - endUrl.Scheme = "https"; + var endUrl = new UriBuilder + { + Path = "/api/ipam/route-targets", + Host = Configuration["NetBoxHost"], + Scheme = "https" + }; return endUrl.Uri; }