Skip to content

Commit

Permalink
fix: more lint-related fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Sep 10, 2024
1 parent c651b0c commit 2d6d43f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// @ts-check
/* eslint-disable no-console */
import { execFile as unpromisifiedExecFile } from 'node:child_process';
import util from 'node:util';
import { promisify } from 'node:util';

const execFile = util.promisify(unpromisifiedExecFile);
const execFile = promisify(unpromisifiedExecFile);

/**
* Retrieves and parses the docker image metadata
Expand Down
4 changes: 2 additions & 2 deletions bin/set-major-version-tag.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#! /usr/bin/env node
// @ts-check
import { execFile as unpromisifiedExecFile } from 'node:child_process';
import util from 'node:util';
import { promisify } from 'node:util';

import { parse } from 'semver';

import pkg from '../package.json' with { type: 'json' };

const execFile = util.promisify(unpromisifiedExecFile);
const execFile = promisify(unpromisifiedExecFile);

/**
* Runs command and logs all output
Expand Down
3 changes: 3 additions & 0 deletions src/lib/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { Choice, PromptObject } from 'prompts';
import parse from 'parse-link-header';
import semver from 'semver';

import { debug } from './logger.js';
import promptTerminal from './promptWrapper.js';
import { handleRes } from './readmeAPIFetch.js';

Expand Down Expand Up @@ -80,6 +81,7 @@ const updateOasPrompt = (
);
return specId;
} catch (e) {
debug(`error retrieving previous specs: ${e.message}`);
return null;
}
} else if (spec === 'next') {
Expand All @@ -92,6 +94,7 @@ const updateOasPrompt = (
);
return specId;
} catch (e) {
debug(`error retrieving next specs: ${e.message}`);
return null;
}
}
Expand Down

0 comments on commit 2d6d43f

Please sign in to comment.