Skip to content

Commit

Permalink
chore: self mutation
Browse files Browse the repository at this point in the history
Signed-off-by: github-actions <github-actions@github.com>
  • Loading branch information
github-actions committed Apr 25, 2022
1 parent 71c2ac6 commit 15f29e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { resolve } from "path";
import * as logging from "../logging";
import * as yargs from "yargs";
import { PROJEN_RC, PROJEN_VERSION } from "../common";
import * as logging from "../logging";
import { TaskRuntime } from "../task-runtime";
import { getNodeMajorVersion } from "../util";
import { synth } from "./synth";
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ function decamelize(s: string, sep: string = "_") {
export function getNodeMajorVersion(): number | undefined {
const match = process.version.match(/(\d+)\.(\d+)\.(\d+)/);
if (match) {
const [major,] = match.slice(1).map(x => parseInt(x));
const [major] = match.slice(1).map((x) => parseInt(x));
return major;
}
return undefined;
Expand Down

0 comments on commit 15f29e1

Please sign in to comment.