Skip to content

Commit 00fa8c7

Browse files
committed
TrimSpace
1 parent 109a677 commit 00fa8c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jas/analyzermanager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ func DownloadAnalyzerManagerIfNeeded(threadId int) error {
230230
return err
231231
}
232232
log.Info("sha2 value of checksumFilePath: " + string(sha2))
233-
log.Info("sha2 value of emoteFileDetails.Checksum.Sha256: " + string(remoteFileDetails.Checksum.Sha256))
233+
log.Info("sha2 value of remoteFileDetails.Checksum.Sha256: " + string(remoteFileDetails.Checksum.Sha256))
234234
// If the checksums are identical, there's no need to download.
235-
if remoteFileDetails.Checksum.Sha256 == string(sha2) {
235+
if strings.TrimSpace(remoteFileDetails.Checksum.Sha256) == strings.TrimSpace(string(sha2)) {
236236
return nil
237237
}
238238
}

0 commit comments

Comments
 (0)