fix: [minor] Avoid unnecessary typecasting. (#4828)

We don't need to typecast identifiers from
their base to type to same type again. This
is not a bug and compiler is fine to skip
it but it is better to avoid if not needed.
This commit is contained in:
Harshavardhana authored and Dee Koder committed 2017-08-18 11:45:16 -07:00
1 parent 7505bac037
commit 2e6ee68409
4 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -75,8 +75,8 @@ func (s ErasureStorage) ReadFile(writer io.Writer, volume, path string, offset,
return f, err
}
startOffset = 0
f.Size += int64(n)
length -= int64(n)
f.Size += n
length -= n
}
f.Algorithm = algorithm