Skip to content

Commit 23bdba3

Browse files
committed
fix comment and assignment
1 parent 8165aa0 commit 23bdba3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

query/query_rest.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ func parseParams(r *http.Request) (uint64, uint64, *string, []*string) {
8181
slices.Sort(ids)
8282
for _, val := range slices.Compact(ids) {
8383
if len(val) > 0 {
84-
//] skip empty sensor IDs
85-
sensorIDs = append(sensorIDs, &val)
84+
// skip empty sensor IDs
85+
v := val
86+
sensorIDs = append(sensorIDs, &v)
8687
}
8788
}
8889
}

0 commit comments

Comments
 (0)