mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Fix goshadow lint
This commit is contained in:
parent
e8eceefc43
commit
52d26b569f
|
|
@ -80,7 +80,7 @@ func GetDevicesByLocalpart(
|
|||
}
|
||||
|
||||
ctx := req.Context()
|
||||
devices, err := deviceDB.GetDevicesByLocalpart(ctx, localpart)
|
||||
deviceList, err := deviceDB.GetDevicesByLocalpart(ctx, localpart)
|
||||
|
||||
if err != nil {
|
||||
return httputil.LogThenError(req, err)
|
||||
|
|
@ -88,7 +88,7 @@ func GetDevicesByLocalpart(
|
|||
|
||||
res := devicesJSON{}
|
||||
|
||||
for _, dev := range devices {
|
||||
for _, dev := range deviceList {
|
||||
res.Devices = append(res.Devices, deviceJSON{
|
||||
DeviceID: dev.ID,
|
||||
UserID: dev.UserID,
|
||||
|
|
|
|||
Loading…
Reference in a new issue