зеркало из https://github.com/github/ruby.git
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:
Родитель
a515e3f99e
Коммит
1c999952e7
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче