summaryrefslogtreecommitdiffstats
path: root/modules/lfs/server.go
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2017-01-27 23:03:32 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-01-27 23:03:32 +0800
commit25663b58161c48bdc8e9cae900544378dede0d2b (patch)
tree1d0cab794b549116cf685101a62cc21634356d6b /modules/lfs/server.go
parent4faf097fb9d07003b52d5f6e51ad3e624a5db062 (diff)
downloadgitea-25663b58161c48bdc8e9cae900544378dede0d2b.tar.gz
gitea-25663b58161c48bdc8e9cae900544378dede0d2b.zip
refactor: Remove unnecessary type conversions (#772)
Diffstat (limited to 'modules/lfs/server.go')
-rw-r--r--modules/lfs/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lfs/server.go b/modules/lfs/server.go
index f82cb70364..1bdeadc463 100644
--- a/modules/lfs/server.go
+++ b/modules/lfs/server.go
@@ -132,7 +132,7 @@ func GetContentHandler(ctx *context.Context) {
if match != nil && len(match) > 1 {
statusCode = 206
fromByte, _ = strconv.ParseInt(match[1], 10, 32)
- ctx.Resp.Header().Set("Content-Range", fmt.Sprintf("bytes %d-%d/%d", fromByte, meta.Size-1, int64(meta.Size)-fromByte))
+ ctx.Resp.Header().Set("Content-Range", fmt.Sprintf("bytes %d-%d/%d", fromByte, meta.Size-1, meta.Size-fromByte))
}
}