File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,11 @@ func (param *Param) normalize() (errs []error) {
97
97
var es []error
98
98
var err error
99
99
100
+ // listens
101
+ param .Listens = util .InPlaceDedup (param .Listens )
102
+ param .ListensPlain = util .InPlaceDedup (param .ListensPlain )
103
+ param .ListensTLS = util .InPlaceDedup (param .ListensTLS )
104
+
100
105
// root
101
106
param .Root , err = filepath .Abs (param .Root )
102
107
errs = serverError .AppendError (errs , err )
Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ func NormalizeUrlPaths(inputs []string) []string {
109
109
outputs = append (outputs , util .CleanUrlPath (input ))
110
110
}
111
111
112
+ outputs = util .InPlaceDedup (outputs )
113
+
112
114
return outputs
113
115
}
114
116
@@ -128,6 +130,8 @@ func NormalizeFsPaths(inputs []string) []string {
128
130
outputs = append (outputs , abs )
129
131
}
130
132
133
+ outputs = util .InPlaceDedup (outputs )
134
+
131
135
return outputs
132
136
}
133
137
You can’t perform that action at this time.
0 commit comments