diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-05-01 11:06:44 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-05-01 11:06:44 +0300 |
commit | 1d53918b62452f9758a837744bac6ca051801a6a (patch) | |
tree | 0ec25b71a106a3d5c1f9e7771f3b0eae909630f0 /lib/gitlab/ci/trace | |
parent | b9cc1188a98f6fef103f0b6553bc6783bcf95fc1 (diff) |
Introduces `FastDestroyAll` module
Diffstat (limited to 'lib/gitlab/ci/trace')
-rw-r--r-- | lib/gitlab/ci/trace/chunked_io.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ci/trace/chunked_io.rb b/lib/gitlab/ci/trace/chunked_io.rb index 1bb8420a220..55c8abd6a86 100644 --- a/lib/gitlab/ci/trace/chunked_io.rb +++ b/lib/gitlab/ci/trace/chunked_io.rb @@ -134,7 +134,7 @@ module Gitlab end def truncate(offset) - raise ArgumentError, 'Outside of file' if offset > size + return unless offset < size && offset >= 0 @tell = offset @size = offset |