1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-05 17:57:17 -05:00

hotfix: lintfix

This commit is contained in:
M. Sz 2021-02-28 14:14:47 +01:00
parent de1c0ebe5d
commit 287fb2bf4d
2 changed files with 3 additions and 2 deletions

View File

@ -235,6 +235,7 @@ func (td *TextDictionary) Marshal() []byte {
// data stream: put all data in appropriate order
for _, key := range keys {
value := (*td)[key]
for _, i := range key {
sw.PushBytes(byte(i))
}

View File

@ -8,7 +8,7 @@ func exampleData() *TextDictionary {
result := &TextDictionary{
"abc": "def",
"someStr": "Some long string",
"teststring": "TeSt",
"teststring": "TeStxwsas123 long strin122*8:wq",
}
return result
@ -27,7 +27,7 @@ func TestTBL_Marshal(t *testing.T) {
newValue, ok := newTbl[key]
if !ok {
t.Fatal("string wasn't encoded to table")
t.Fatalf("string %s wasn't encoded to table", key)
}
if newValue != value {