Remove unnecessary parenthesis

This commit is contained in:
RichardNysater 2017-06-04 03:03:49 +02:00
parent d06c00bcf9
commit 13e880e5ac

View file

@ -63,7 +63,7 @@ func (c *Cache) CheckDirectorySize() {
const bytesInMiB int64 = 1048576
c.UpdateStatistics()
for c.TotalFileSize > (int64(viper.GetInt("cache.maximum_size"))*bytesInMiB) {
for c.TotalFileSize > int64(viper.GetInt("cache.maximum_size"))*bytesInMiB {
if err := c.DeleteOldest(); err != nil {
break
}