Fix goshadow lint

This commit is contained in:
Richard van der Hoff 2017-11-14 21:53:46 +00:00
parent e8eceefc43
commit 52d26b569f

View file

@ -80,7 +80,7 @@ func GetDevicesByLocalpart(
} }
ctx := req.Context() ctx := req.Context()
devices, err := deviceDB.GetDevicesByLocalpart(ctx, localpart) deviceList, err := deviceDB.GetDevicesByLocalpart(ctx, localpart)
if err != nil { if err != nil {
return httputil.LogThenError(req, err) return httputil.LogThenError(req, err)
@ -88,7 +88,7 @@ func GetDevicesByLocalpart(
res := devicesJSON{} res := devicesJSON{}
for _, dev := range devices { for _, dev := range deviceList {
res.Devices = append(res.Devices, deviceJSON{ res.Devices = append(res.Devices, deviceJSON{
DeviceID: dev.ID, DeviceID: dev.ID,
UserID: dev.UserID, UserID: dev.UserID,