mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Resolve unused local variable reported by LGTM
LGTM reports that the value assigned to local variable 'shared' is never used:f319a5d064/files/misc/lldb_cruby.py (x6512c0281581a470)
:1 This problem was introduced in by the refactoring that took place in7c496b6624
.
This commit is contained in:
parent
a515e3f99e
commit
1c999952e7
Notes:
git
2019-10-03 13:45:16 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ def lldb_inspect(debugger, target, result, val):
|
|||
result.write(" (embed)")
|
||||
elif flags & RUBY_FL_USER2:
|
||||
shared = val.GetValueForExpressionPath("->as.heap.aux.shared").GetValueAsUnsigned()
|
||||
result.write(" (shared) shared=%016x")
|
||||
result.write(" (shared) shared=%016x" % shared)
|
||||
else:
|
||||
capa = val.GetValueForExpressionPath("->as.heap.aux.capa").GetValueAsSigned()
|
||||
result.write(" (ownership) capa=%d" % capa)
|
||||
|
|
Loading…
Reference in a new issue