Skip to content

Commit 252d186

Browse files
Fix: Access function through self (#29)
Co-authored-by: Suraj Jacob <28795567+jacobmsft@users.noreply.github.com>
1 parent 2ab615d commit 252d186

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

container/libs/codeql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ def install_codeql_cli(self, download_path):
8585
ret1 = check_output_wrapper(f'unzip {download_path} -d {codeql_dir}', shell=True)
8686

8787
def precompile_queries(self):
88-
execute_codeql_command(f' query compile --search-path {self.CODEQL_HOME} {self.CODEQL_HOME}/codeql-repo/*/ql/src/codeql-suites/*.qls')
88+
self.execute_codeql_command(f' query compile --search-path {self.CODEQL_HOME} {self.CODEQL_HOME}/codeql-repo/*/ql/src/codeql-suites/*.qls')
8989

9090
def execute_codeql_command(self, args):
9191
ret_string = check_output_wrapper(f'{self.CODEQL_HOME}/codeql/codeql {args}', shell=True)
9292
if ret_string is CalledProcessError:
9393
logger.error("Could not run codeql command")
9494
exit(self.ERROR_EXECUTING_CODEQL)
95-
return bytearray(ret_string).decode('utf-8')
95+
return bytearray(ret_string).decode('utf-8')

0 commit comments

Comments
 (0)