Skip to content

Commit

Permalink
Merge pull request #312 from ericcornelissen/fix-minor-code-mistakes
Browse files Browse the repository at this point in the history
Two minor code fixes
  • Loading branch information
Chris Gavin authored and GitHub committed Nov 20, 2020
2 parents 31872f1 + a04d948 commit 0a05e95
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/update-release-branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def get_pr_for_commit(repo, commit):
if prs.totalCount > 0:
# In the case that there are multiple PRs, return the earliest one
prs = list(prs)
sorted(prs, key=lambda pr: int(pr.number))
return prs[0]
sorted_prs = sorted(prs, key=lambda pr: int(pr.number))
return sorted_prs[0]
else:
return None

Expand Down
1 change: 0 additions & 1 deletion lib/tracer-config.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/tracer-config.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/tracer-config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ test("getTracerConfigForLanguage - existing / critical vars", async (t) => {
process.env["SEMMLE_COPY_EXECUTABLES_ROOT"] = "abc";
process.env["SEMMLE_DEPTRACE_SOCKET"] = "abc";
process.env["SEMMLE_JAVA_TOOL_OPTIONS"] = "abc";
process.env["SEMMLE_DEPTRACE_SOCKET"] = "abc";
process.env["CODEQL_VAR"] = "abc";

// Now CodeQL returns all these variables, and one more, with different values
Expand Down

0 comments on commit 0a05e95

Please sign in to comment.