Skip to content

Commit 36bbb77

Browse files
RuboCop.
1 parent 7266939 commit 36bbb77

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/async/utilization/metric.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def set(value)
9292
write_direct(@value)
9393
end
9494
end
95-
95+
9696
protected
9797

9898
# Check if the cache is valid and rebuild if necessary.
@@ -111,7 +111,7 @@ def ensure_cache_valid!
111111
end
112112
end
113113
end
114-
114+
115115
# Once we've validated the cache, even if there was no observer or buffer, we mark it as valid, so that we don't try to revalidate it again:
116116
@cache_valid = true
117117
end
@@ -126,11 +126,11 @@ def ensure_cache_valid!
126126
# @returns [Boolean] Whether the write succeeded.
127127
def write_direct(value)
128128
self.ensure_cache_valid!
129-
129+
130130
if @cached_buffer
131131
@cached_buffer.set_value(@cached_field_info.type, @cached_field_info.offset, value)
132132
end
133-
133+
134134
return true
135135
rescue => error
136136
# If write fails, log warning but don't invalidate cache

0 commit comments

Comments
 (0)