Skip to content

Commit

Permalink
Revert "Explicitly import performance for Node 12 compatibility"
Browse files Browse the repository at this point in the history
This reverts commit b7435e9.
  • Loading branch information
Henry Mercer committed Aug 25, 2022
1 parent bd951de commit b0d070a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 15 deletions.
6 changes: 2 additions & 4 deletions lib/analyze-action.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/analyze-action.js.map

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

6 changes: 2 additions & 4 deletions lib/config-utils.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/config-utils.js.map

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions src/analyze-action.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// We need to import `performance` on Node 12
import { performance } from "perf_hooks";

import * as core from "@actions/core";

import * as actionsUtil from "./actions-util";
Expand Down
2 changes: 0 additions & 2 deletions src/config-utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import * as fs from "fs";
import * as path from "path";
// We need to import `performance` on Node 12
import { performance } from "perf_hooks";

import * as yaml from "js-yaml";
import * as semver from "semver";
Expand Down

0 comments on commit b0d070a

Please sign in to comment.