From: Jeff Halter Date: Thu, 26 May 2022 02:57:23 +0000 (-0700) Subject: Remove placeholder file comment X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/commitdiff_plain/5218c7823d91f5c8910813b02b41bda3de9f9c6e?ds=inline;hp=5433ca327290cc235c1524a4e64b32a4b45f6d99 Remove placeholder file comment --- diff --git a/hotline/flattened_file_object.go b/hotline/flattened_file_object.go index 0a14df0..2cafbc9 100644 --- a/hotline/flattened_file_object.go +++ b/hotline/flattened_file_object.go @@ -67,8 +67,8 @@ func NewFlatFileInformationFork(fileName string, modifyTime []byte) FlatFileInfo ModifyDate: modifyTime, NameScript: make([]byte, 2), // TODO: What is this? Name: []byte(fileName), - CommentSize: []byte{0, 4}, - Comment: []byte("TODO"), // TODO: implement (maybe?) + CommentSize: []byte{0, 0}, + Comment: []byte{}, // TODO: implement (maybe?) } } diff --git a/hotline/transaction_handlers_test.go b/hotline/transaction_handlers_test.go index b734049..21643bf 100644 --- a/hotline/transaction_handlers_test.go +++ b/hotline/transaction_handlers_test.go @@ -494,7 +494,7 @@ func TestHandleGetFileInfo(t *testing.T) { NewField(fieldFileName, []byte("testfile.txt")), NewField(fieldFileTypeString, []byte("TEXT")), NewField(fieldFileCreatorString, []byte("ttxt")), - NewField(fieldFileComment, []byte("TODO")), + NewField(fieldFileComment, []byte{}), NewField(fieldFileType, []byte("TEXT")), NewField(fieldFileCreateDate, make([]byte, 8)), NewField(fieldFileModifyDate, make([]byte, 8)),