From 6a284378d6ba7bb55d0668f3252ce222cfc01e5a Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Tue, 9 Mar 2021 18:57:24 +0100 Subject: [PATCH] Update ql/src/codeql_ruby/ast/Scope.qll Co-authored-by: Nick Rolfe --- ql/src/codeql_ruby/ast/Scope.qll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ql/src/codeql_ruby/ast/Scope.qll b/ql/src/codeql_ruby/ast/Scope.qll index bbc34bc81fb..c0484232a3d 100644 --- a/ql/src/codeql_ruby/ast/Scope.qll +++ b/ql/src/codeql_ruby/ast/Scope.qll @@ -16,7 +16,7 @@ class Scope extends AstNode, Scope::ScopeType { /** Gets a variable that is declared in this scope. */ final Variable getAVariable() { result.getDeclaringScope() = this } - /** Gets the variable with the given name that is declared in this scope. */ + /** Gets the variable declared in this scope with the given name, if any. */ final Variable getVariable(string name) { result = this.getAVariable() and result.getName() = name