Skip to content

Commit

Permalink
code tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlehane committed Apr 30, 2022
1 parent 5eed41e commit 1ace8a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
5 changes: 1 addition & 4 deletions msoleps.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ var (

// IsMSOLEPS checks the first uint16 character of an mscfb name to test if it is a MSOLEPS stream
func IsMSOLEPS(i uint16) bool {
if i == 0x0005 {
return true
}
return false
return i == 0x0005
}

// Reader is a reader for MS OLE Property Set Data structures
Expand Down
1 change: 0 additions & 1 deletion msoleps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ var (
testDocSum = "test/DocumentSummaryInformation"
testSum = "test/SummaryInformation"
testSum1 = "test/SummaryInformation1"
testBad = "test/SummaryInformationBad"
)

func testFile(t *testing.T, path string) *Reader {
Expand Down
6 changes: 3 additions & 3 deletions sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ func addDefaults(m map[uint32]string) map[uint32]string {

}

var propertySets map[types.Guid]map[uint32]string = map[types.Guid]map[uint32]string{
types.MustGuidFromString("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"): map[uint32]string{
var propertySets = map[types.Guid]map[uint32]string{
types.MustGuidFromString("{D5CDD502-2E9C-101B-9397-08002B2CF9AE}"): {
0x00000002: "Category",
0x00000003: "Presentation Format",
0x00000004: "Byte count",
Expand Down Expand Up @@ -54,7 +54,7 @@ var propertySets map[types.Guid]map[uint32]string = map[types.Guid]map[uint32]st
0x0000001C: "Language",
0x0000001D: "Document Version",
},
types.MustGuidFromString("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"): map[uint32]string{
types.MustGuidFromString("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"): {
0x00000002: "Title",
0x00000003: "Subject",
0x00000004: "Author",
Expand Down

0 comments on commit 1ace8a7

Please sign in to comment.