From 2f9aeb762294fe96606c76c2fefa17a6540639b5 Mon Sep 17 00:00:00 2001 From: BiSaXa <1669855+BiSaXa@users.noreply.github.com> Date: Sat, 27 Aug 2022 23:26:28 +0300 Subject: some cleaning --- utils/utils.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'utils/utils.go') diff --git a/utils/utils.go b/utils/utils.go index 6db28b0..5226e80 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -9,6 +9,12 @@ import ( "unsafe" ) +func CheckError(e error) { + if e != nil { + log.Panic(e) + } +} + func ReverseByteArrayValues(byteArr []byte, size int) []byte { arr := make([]byte, size) for index, byteValue := range byteArr { @@ -23,12 +29,6 @@ func ReadByteFromFile(file *os.File, size int32) []byte { return tmp } -func CheckError(e error) { - if e != nil { - log.Panic(e) - } -} - func IntFromBytes(byteArr []byte) uint32 { int := binary.LittleEndian.Uint32(byteArr) return int -- cgit v1.2.3