This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit dd4901917c7ffd25cf739aa7dd7dcff73679a966
Author: Shad Storhaug <[email protected]>
AuthorDate: Sun Nov 1 22:28:20 2020 +0700

    website: Updated home page example to exclude unnecessary variable for 
Environment.SpecialFolder enumeration value
---
 websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial 
b/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
index 6bcead6..8e9bc40 100644
--- a/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
+++ b/websites/site/lucenetemplate/partials/home-quick-start.tmpl.partial
@@ -5,12 +5,12 @@
 <p class="text-center">Create an index and define a text analyzer</p>
 <pre class="clean">
 <code class="csharp">
-// Ensures index backwards compatibility
+// Ensures index backward compatibility
 const LuceneVersion AppLuceneVersion = LuceneVersion.LUCENE_48;
 
 // Construct a machine-independent path for the index
-var appDataFolder = Environment.SpecialFolder.CommonApplicationData;
-var basePath = Environment.GetFolderPath(appDataFolder);
+var basePath = Environment.GetFolderPath(
+    Environment.SpecialFolder.CommonApplicationData);
 var indexPath = Path.Combine(basePath, "index");
 
 using var dir = FSDirectory.Open(indexPath);

Reply via email to