Clean up.
[crypto_lab2.git] / labo2-fsharp / CryptoFile / API.fs
index 886b0d9..2f80c07 100644 (file)
@@ -93,12 +93,12 @@ module API =
         // Decrypt metadata.
         inputStream.Position <- 32L + 256L + 256L
         use cryptoStream = Crypto.decryptAES keyAES iv inputStream
-        let metadata = Metadata (cryptoStream)
+        let metadata = Metadata cryptoStream
 
         // Create the file and write its content and metadata.
         let filePath = Path.Combine (targetDirPath, metadata.get MetadataKeys.filename)
         let modificationTime = DateTime (metadata.get MetadataKeys.modificationTime |> int64)
-        let fileInfo = FileInfo (filePath)
+        let fileInfo = FileInfo filePath
         using (fileInfo.Create ()) <| fun outputStream -> cryptoStream.CopyTo outputStream
         fileInfo.LastWriteTimeUtc <- modificationTime
     
\ No newline at end of file