mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-26 09:20:35 +01:00
Merge pull request #65 from DeterminateSystems/eslint-coalescing
Fix nullish coalescing
This commit is contained in:
commit
7904c481e4
4 changed files with 6 additions and 5 deletions
|
@ -60,6 +60,7 @@
|
||||||
"@typescript-eslint/prefer-for-of": "warn",
|
"@typescript-eslint/prefer-for-of": "warn",
|
||||||
"@typescript-eslint/prefer-function-type": "warn",
|
"@typescript-eslint/prefer-function-type": "warn",
|
||||||
"@typescript-eslint/prefer-includes": "error",
|
"@typescript-eslint/prefer-includes": "error",
|
||||||
|
"@typescript-eslint/prefer-nullish-coalescing": "error",
|
||||||
"@typescript-eslint/prefer-string-starts-ends-with": "error",
|
"@typescript-eslint/prefer-string-starts-ends-with": "error",
|
||||||
"@typescript-eslint/promise-function-async": "error",
|
"@typescript-eslint/promise-function-async": "error",
|
||||||
"@typescript-eslint/require-array-sort-compare": "error",
|
"@typescript-eslint/require-array-sort-compare": "error",
|
||||||
|
|
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
|
@ -95421,7 +95421,7 @@ function tailLog(daemonDir) {
|
||||||
}
|
}
|
||||||
async function netrcPath() {
|
async function netrcPath() {
|
||||||
const expectedNetrcPath = external_node_path_namespaceObject.join(
|
const expectedNetrcPath = external_node_path_namespaceObject.join(
|
||||||
process.env["RUNNER_TEMP"] || external_node_os_.tmpdir(),
|
process.env["RUNNER_TEMP"] ?? external_node_os_.tmpdir(),
|
||||||
"determinate-nix-installer-netrc"
|
"determinate-nix-installer-netrc"
|
||||||
);
|
);
|
||||||
try {
|
try {
|
||||||
|
@ -95429,7 +95429,7 @@ async function netrcPath() {
|
||||||
return expectedNetrcPath;
|
return expectedNetrcPath;
|
||||||
} catch {
|
} catch {
|
||||||
const destinedNetrcPath = external_node_path_namespaceObject.join(
|
const destinedNetrcPath = external_node_path_namespaceObject.join(
|
||||||
process.env["RUNNER_TEMP"] || external_node_os_.tmpdir(),
|
process.env["RUNNER_TEMP"] ?? external_node_os_.tmpdir(),
|
||||||
"magic-nix-cache-netrc"
|
"magic-nix-cache-netrc"
|
||||||
);
|
);
|
||||||
try {
|
try {
|
||||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -15,7 +15,7 @@ export function tailLog(daemonDir: string): Tail {
|
||||||
|
|
||||||
export async function netrcPath(): Promise<string> {
|
export async function netrcPath(): Promise<string> {
|
||||||
const expectedNetrcPath = path.join(
|
const expectedNetrcPath = path.join(
|
||||||
process.env["RUNNER_TEMP"] || os.tmpdir(),
|
process.env["RUNNER_TEMP"] ?? os.tmpdir(),
|
||||||
"determinate-nix-installer-netrc",
|
"determinate-nix-installer-netrc",
|
||||||
);
|
);
|
||||||
try {
|
try {
|
||||||
|
@ -24,7 +24,7 @@ export async function netrcPath(): Promise<string> {
|
||||||
} catch {
|
} catch {
|
||||||
// `nix-installer` was not used, the user may be registered with FlakeHub though.
|
// `nix-installer` was not used, the user may be registered with FlakeHub though.
|
||||||
const destinedNetrcPath = path.join(
|
const destinedNetrcPath = path.join(
|
||||||
process.env["RUNNER_TEMP"] || os.tmpdir(),
|
process.env["RUNNER_TEMP"] ?? os.tmpdir(),
|
||||||
"magic-nix-cache-netrc",
|
"magic-nix-cache-netrc",
|
||||||
);
|
);
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue