File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ type appInteractDatum interface {
8080 pseudo () bool
8181}
8282
83- func helpList (help map [string ]appInteractDatum ) string {
83+ func helpList [ V appInteractDatum ] (help map [string ]V ) string {
8484 largestName := 0
8585 largestKind := 0
8686 for k , v := range help {
@@ -286,11 +286,7 @@ func (sch appInteractSchema) validate() (err error) {
286286}
287287
288288func (sch appInteractSchema ) EntryList () string {
289- help := make (map [string ]appInteractDatum )
290- for k , v := range sch {
291- help [k ] = v
292- }
293- return helpList (help )
289+ return helpList (sch )
294290}
295291
296292func (sch appInteractSchema ) EntryNames () (names []string ) {
@@ -434,11 +430,7 @@ func (hdr appInteractHeader) validate() (err error) {
434430}
435431
436432func (hdr appInteractHeader ) ProcList () string {
437- help := make (map [string ]appInteractDatum )
438- for k , v := range hdr .Execute {
439- help [k ] = v
440- }
441- return helpList (help )
433+ return helpList (hdr .Execute )
442434}
443435
444436func (hdr appInteractHeader ) ProcNames () (names []string ) {
You can’t perform that action at this time.
0 commit comments