diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index d8b54bc..4b638cf 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,20 +4,9 @@
-
-
-
-
+
-
-
-
-
-
-
-
-
-
+
@@ -129,7 +118,6 @@
-
@@ -154,7 +142,8 @@
-
+
+
true
diff --git a/pkg/internal/services/analyzer.go b/pkg/internal/services/analyzer.go
index 04fead9..ce3463a 100644
--- a/pkg/internal/services/analyzer.go
+++ b/pkg/internal/services/analyzer.go
@@ -277,7 +277,7 @@ func HashAttachment(file models.Attachment) (hash string, err error) {
hasher := sha256.New()
- if chunkSize*3 <= fileInfo.Size() {
+ if chunkSize*3 > fileInfo.Size() {
// If the total size is smaller than three chunks, then hash the whole file
buf := make([]byte, fileInfo.Size())
if _, err := inFile.Read(buf); err != nil && err != io.EOF {