aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorEmil <mursalimovemeel@gmail.com>2018-09-15 04:07:13 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-09-15 04:07:13 +0800
commit86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32 (patch)
tree92ee61a4d5a2c750b6abc257f30b040485e29842 /common
parent7bb95a9a64c9d26bef4f15fdd9301bb0b5cdb668 (diff)
downloadgo-tangerine-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.tar.gz
go-tangerine-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.tar.zst
go-tangerine-86a03f97d30c11a5321fa2f0fd37cbc4c7f63a32.zip
all: simplify s[:] to s where s is a slice (#17673)
Diffstat (limited to 'common')
-rw-r--r--common/bytes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/bytes.go b/common/bytes.go
index cbab2c3fa..0c257a1ee 100644
--- a/common/bytes.go
+++ b/common/bytes.go
@@ -100,7 +100,7 @@ func Hex2BytesFixed(str string, flen int) []byte {
return h[len(h)-flen:]
}
hh := make([]byte, flen)
- copy(hh[flen-len(h):flen], h[:])
+ copy(hh[flen-len(h):flen], h)
return hh
}