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