File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -115,10 +115,10 @@ func generate(name string, args []string) {
115
115
}
116
116
117
117
// Converts a slice string into a simple lookup map.
118
- func lookupMap (s []string ) map [string ]struct {} {
119
- lookup := make (map [string ]struct {} , len (s ))
118
+ func lookupMap (s []string ) map [string ]bool {
119
+ lookup := make (map [string ]bool , len (s ))
120
120
for _ , str := range s {
121
- lookup [str ] = struct {}{}
121
+ lookup [str ] = true
122
122
}
123
123
return lookup
124
124
}
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ func (pkg *Package) HasRequiredFunctions() bool {
112
112
// Filter removes any enums, or functions found in this package that are not
113
113
// listed in the given lookup maps. If either of the maps has a length of zero,
114
114
// filtering does not occur for that type (e.g. all functions are left intact).
115
- func (pkg * Package ) Filter (enums , functions map [string ]struct {} ) {
115
+ func (pkg * Package ) Filter (enums , functions map [string ]bool ) {
116
116
if len (enums ) > 0 {
117
117
// Remove any enum not listed in the enums lookup map.
118
118
for name := range pkg .Enums {
You can’t perform that action at this time.
0 commit comments