diff --git a/src/SharpCompress/Common/GZip/GZipEntry.cs b/src/SharpCompress/Common/GZip/GZipEntry.cs index 07a3d491..1204cfd7 100644 --- a/src/SharpCompress/Common/GZip/GZipEntry.cs +++ b/src/SharpCompress/Common/GZip/GZipEntry.cs @@ -19,7 +19,7 @@ namespace SharpCompress.Common.GZip public override string Key => _filePart.FilePartName; - public override string? LinkTarget => null; + public override string? LinkTarget => null; public override long CompressedSize => 0; diff --git a/src/SharpCompress/Compressors/Deflate/GZipStream.cs b/src/SharpCompress/Compressors/Deflate/GZipStream.cs index 84fc1379..ffc4759d 100644 --- a/src/SharpCompress/Compressors/Deflate/GZipStream.cs +++ b/src/SharpCompress/Compressors/Deflate/GZipStream.cs @@ -357,8 +357,8 @@ namespace SharpCompress.Compressors.Deflate _comment = value; } } - - + + public DateTime? LastModified { get => _lastModified; diff --git a/tests/SharpCompress.Test/GZip/GZipArchiveTests.cs b/tests/SharpCompress.Test/GZip/GZipArchiveTests.cs index 0fbb1602..5f4a7c22 100644 --- a/tests/SharpCompress.Test/GZip/GZipArchiveTests.cs +++ b/tests/SharpCompress.Test/GZip/GZipArchiveTests.cs @@ -26,7 +26,7 @@ namespace SharpCompress.Test.GZip long size = entry.Size; var scratch = new FileInfo(Path.Combine(SCRATCH_FILES_PATH, "Tar.tar")); var test = new FileInfo(Path.Combine(TEST_ARCHIVES_PATH, "Tar.tar")); - + Assert.Equal(size, scratch.Length); Assert.Equal(size, test.Length); } @@ -46,7 +46,7 @@ namespace SharpCompress.Test.GZip long size = entry.Size; var scratch = new FileInfo(Path.Combine(SCRATCH_FILES_PATH, "Tar.tar")); var test = new FileInfo(Path.Combine(TEST_ARCHIVES_PATH, "Tar.tar")); - + Assert.Equal(size, scratch.Length); Assert.Equal(size, test.Length); }