Skip to content

Commit 5a88a5f

Browse files
Paolo CalaoGiuseppe Lumia
andauthored
Update command/device/createlora.go
Co-authored-by: Giuseppe Lumia <[email protected]>
1 parent 97557b0 commit 5a88a5f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

command/device/createlora.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ func CreateLora(params *CreateLoraParams) (*DeviceLoraInfo, error) {
101101
devInfo, err := getDeviceLoraInfo(iotClient, dev)
102102
if err != nil {
103103
iotClient.DeviceDelete(dev.DeviceId)
104-
err = fmt.Errorf("%s: %w", "cannot provision LoRa device", err)
105-
return nil, err
104+
return nil, fmt.Errorf("%s: %w", "cannot provision LoRa device", err)
106105
}
107106
return devInfo, nil
108107
}

0 commit comments

Comments
 (0)