Skip to content

Commit

Permalink
ci: fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
bitxeno committed Sep 18, 2024
1 parent 5f5136e commit 0e0689d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/manager/device_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ func (dm *DeviceManager) GetDeviceByUDID(udid string) (*model.Device, bool) {

func (dm *DeviceManager) AppendProductInfo(dev *model.Device) {
timeout := 10 * time.Second
ctx, _ := context.WithTimeout(context.Background(), timeout)
ctx, cancel := context.WithTimeout(context.Background(), timeout)
defer cancel()
cmd := exec.CommandContext(ctx, "ideviceinfo", "-u", dev.UDID, "-n")
cmd.Dir = app.Config.Server.DataDir
output, err := cmd.CombinedOutput()
Expand Down

0 comments on commit 0e0689d

Please sign in to comment.