aboutsummaryrefslogtreecommitdiffstats
path: root/modules/pull
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-07-23 20:50:39 +0200
committerzeripath <art27@cantab.net>2019-07-23 19:50:39 +0100
commit54d96c79b5b9f3d5d47aed59729ae779968fbecb (patch)
tree3d74fa2aecf3a9c5a23a1ec0c7e66fca270216aa /modules/pull
parent2f75766532fbf30883c05e93ef01c19268216c45 (diff)
downloadgitea-54d96c79b5b9f3d5d47aed59729ae779968fbecb.tar.gz
gitea-54d96c79b5b9f3d5d47aed59729ae779968fbecb.zip
Removed unnecessary conversions (#7557)
No need to convert to the same type.
Diffstat (limited to 'modules/pull')
-rw-r--r--modules/pull/lfs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pull/lfs.go b/modules/pull/lfs.go
index 77890667d6..2706d3a200 100644
--- a/modules/pull/lfs.go
+++ b/modules/pull/lfs.go
@@ -138,7 +138,7 @@ func readCatFileBatchCheck(catFileCheckReader *io.PipeReader, shasToBatchWriter
if len(fields) < 3 || fields[1] != "blob" {
continue
}
- size, _ := strconv.Atoi(string(fields[2]))
+ size, _ := strconv.Atoi(fields[2])
if size > 1024 {
continue
}