diff options
author | Eric Wong <e@80x24.org> | 2015-04-13 00:59:02 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-04-13 00:59:02 +0000 |
commit | 7681d9416cae1236e31cdada571ec163b3d02d9b (patch) | |
tree | 8317f6ebe52cce5f9399bab9de82c8a789c5cb27 /lib/dtas/process.rb | |
parent | c4ffed8a441fb0f16f0d206218b3580ae4460797 (diff) | |
download | dtas-7681d9416cae1236e31cdada571ec163b3d02d9b.tar.gz |
We already convert xs arg to be an Array, so avoid bloating our code with redundancy.
Diffstat (limited to 'lib/dtas/process.rb')
-rw-r--r-- | lib/dtas/process.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/process.rb b/lib/dtas/process.rb index ab4b2d5..5be107f 100644 --- a/lib/dtas/process.rb +++ b/lib/dtas/process.rb @@ -99,6 +99,6 @@ module DTAS::Process # :nodoc: _, status = Process.waitpid2(pid) return res if status.success? return status if no_raise - raise RuntimeError, "`#{xs(Array(cmd))}' failed: #{status.inspect}" + raise RuntimeError, "`#{xs(cmd)}' failed: #{status.inspect}" end end |