Browse Source

Cosmetics

Piotr Czajkowski 5 years ago
parent
commit
f39a174cd2
1 changed files with 1 additions and 3 deletions
  1. 1 3
      DOCX/DOCX.cs

+ 1 - 3
DOCX/DOCX.cs

@@ -11,7 +11,6 @@ namespace DOCX
     public class Docx : IDisposable
     {
         private readonly ZipArchive _zip;
-        private readonly string _zipPath;
         private readonly string _authorsJson;
         private readonly XmlNamespaceManager _ns = new XmlNamespaceManager(new NameTable());
 
@@ -31,8 +30,7 @@ namespace DOCX
         public Docx(string path)
         {
             _zip = ZipFile.Open(path, ZipArchiveMode.Update);
-            _zipPath = path;
-            _authorsJson = Path.ChangeExtension(_zipPath, "json");
+            _authorsJson = Path.ChangeExtension(path, "json");
             LoadNamespaces();
         }