mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 22:58:46 +00:00
encoding/base32: Fix style issues for CI
This commit is contained in:
@@ -48,7 +48,7 @@ DEC_TABLE := [256]u8 {
|
|||||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
encode :: proc(data: []byte, ENC_TBL := ENC_TABLE, allocator := context.allocator) -> string {
|
encode :: proc(data: []byte, ENC_TBL := ENC_TABLE, allocator := context.allocator) -> string {
|
||||||
@@ -114,8 +114,7 @@ decode :: proc(
|
|||||||
data: string,
|
data: string,
|
||||||
DEC_TBL := DEC_TABLE,
|
DEC_TBL := DEC_TABLE,
|
||||||
validate: Validate_Proc = _validate_default,
|
validate: Validate_Proc = _validate_default,
|
||||||
allocator := context.allocator) -> (out: []byte, err: Error)
|
allocator := context.allocator) -> (out: []byte, err: Error) {
|
||||||
{
|
|
||||||
if len(data) == 0 {
|
if len(data) == 0 {
|
||||||
return nil, .None
|
return nil, .None
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user