File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ func (d *Detector) DetectAll(b []byte) ([]Result, error) {
99
99
for _ , r := range d .recognizers {
100
100
go matchHelper (r , input , outputChan )
101
101
}
102
- outputs := make ([] recognizerOutput , 0 , len (d .recognizers ))
102
+ outputs := make (recognizerOutputs , 0 , len (d .recognizers ))
103
103
for i := 0 ; i < len (d .recognizers ); i ++ {
104
104
o := <- outputChan
105
105
if o .Confidence > 0 {
@@ -110,7 +110,7 @@ func (d *Detector) DetectAll(b []byte) ([]Result, error) {
110
110
return nil , NotDetectedError
111
111
}
112
112
113
- sort .Sort (recognizerOutputs ( outputs ) )
113
+ sort .Sort (outputs )
114
114
dedupOutputs := make ([]Result , 0 , len (outputs ))
115
115
foundCharsets := make (map [string ]struct {}, len (outputs ))
116
116
for _ , o := range outputs {
You can’t perform that action at this time.
0 commit comments