Skip to content

Commit

Permalink
fix: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarm committed Sep 27, 2023
1 parent 13bf456 commit a7561c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions packages/@cdktf/commons/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,12 @@ export async function ensureAllSettledBeforeThrowing(
* This is the same behavior as the `chalk` lib we use for coloring output
*/
function hasNoColorFlagOrEnv(): boolean {
return hasFlag("no-color") || process.env.FORCE_COLOR === "0"
return hasFlag("no-color") || process.env.FORCE_COLOR === "0";
}

// From: https://github.com/sindresorhus/has-flag/blob/main/index.js
// as used in https://github.com/chalk/chalk
function hasFlag(
flag: string
) {
function hasFlag(flag: string) {
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
const position = process.argv.indexOf(prefix + flag);
const terminatorPosition = process.argv.indexOf("--");
Expand Down
2 changes: 1 addition & 1 deletion packages/@cdktf/provider-schema/src/provider-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
ProviderSchema,
VersionSchema,
exec,
withTempDir
withTempDir,
} from "@cdktf/commons";

const terraformBinaryName = process.env.TERRAFORM_BINARY_NAME || "terraform";
Expand Down

0 comments on commit a7561c5

Please sign in to comment.