summaryrefslogtreecommitdiff
path: root/crypt.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-04-01 21:52:43 +0800
committerxuri <xuri.me@gmail.com>2021-04-01 21:52:43 +0800
commita002a2417e9cc9d8dc3d405d2d96f7dd24710082 (patch)
tree4f5d9f7b9ee8a6b4f52ccdfccd0b5900b52aeea9 /crypt.go
parent9d4bf88b4700eeb5c50d4cc6efb0a2d73e5e8b7f (diff)
#65 fn: VAR.P and VARP and fix Yoda conditions issue
Diffstat (limited to 'crypt.go')
-rw-r--r--crypt.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/crypt.go b/crypt.go
index 64eadd6..5ecdf33 100644
--- a/crypt.go
+++ b/crypt.go
@@ -278,14 +278,12 @@ func extractPart(doc *mscfb.Reader) (encryptionInfoBuf, encryptedPackageBuf []by
i, _ := doc.Read(buf)
if i > 0 {
encryptionInfoBuf = buf
- break
}
case "EncryptedPackage":
buf := make([]byte, entry.Size)
i, _ := doc.Read(buf)
if i > 0 {
encryptedPackageBuf = buf
- break
}
}
}