mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-03-28 04:24:28 -05:00
mediaapi/writers: Remove unnecessary comparison to true
This commit is contained in:
parent
8684f80ebd
commit
6fe6f45093
src/github.com/matrix-org/dendrite/mediaapi/writers
|
@ -347,7 +347,7 @@ func (r *downloadRequest) commitFileAndMetadata(tmpDir types.Path, absBasePath t
|
|||
r.Logger.WithError(err).Error("Failed to move file.")
|
||||
return updateActiveRemoteRequests
|
||||
}
|
||||
if duplicate == true {
|
||||
if duplicate {
|
||||
r.Logger.WithField("dst", finalPath).Info("File was stored previously - discarding duplicate")
|
||||
// Continue on to store the metadata in the database
|
||||
}
|
||||
|
|
|
@ -151,7 +151,7 @@ func storeFileAndMetadata(tmpDir types.Path, absBasePath types.Path, mediaMetada
|
|||
JSON: jsonerror.Unknown(fmt.Sprintf("Failed to upload")),
|
||||
}
|
||||
}
|
||||
if duplicate == true {
|
||||
if duplicate {
|
||||
logger.WithField("dst", finalPath).Info("File was stored previously - discarding duplicate")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue