Refactor
This commit is contained in:
parent
a6052d167d
commit
3b3b421fef
|
@ -18,11 +18,6 @@ struct Simctl {
|
||||||
throw Error.listDevices(errorOutput: errorOutput)
|
throw Error.listDevices(errorOutput: errorOutput)
|
||||||
}
|
}
|
||||||
|
|
||||||
switch result.output {
|
return Data(try result.output.dematerialize())
|
||||||
case .success(let bytes):
|
|
||||||
return Data(bytes)
|
|
||||||
case .failure(let error):
|
|
||||||
throw error
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue