Skip to content

Commit

Permalink
Remove redandant async
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyEckstein committed Dec 6, 2021
1 parent 0177181 commit 314f738
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/utils/get-latest-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const execAsync = promisify(exec);
* @returns {Promise<StandardOutput>} - Return latest version, if latest tag exists.
* @throws {Error} - Output failed JSON parse.
*/
async function getLatestTag(name) {
function getLatestTag(name) {
return execAsync(`npm view ${name} dist-tags --json`);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/utils/get-latest-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const execAsync = promisify(exec);
* @returns {Promise<StandardOutput>} - List of available versions.
* @throws {Error} - Output failed JSON parse.
*/
async function getLatestVersions(name) {
function getLatestVersions(name) {
return execAsync(`npm view ${name} versions --json`);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/utils/install-dev-packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const execAsync = promisify(exec);
* @param {string} pkgs - list of packages.
* @returns {Promise<StandardOutput>} - Standard output.
*/
async function installDevPackages(pkgs) {
function installDevPackages(pkgs) {
return execAsync(`npm i -D ${pkgs}`);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/utils/install-packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const execAsync = promisify(exec);
* @param {string} pkgs - list of packages.
* @returns {Promise<StandardOutput>} - Standard output.
*/
async function installPackages(pkgs) {
function installPackages(pkgs) {
return execAsync(`npm i ${pkgs}`);
}

Expand Down

0 comments on commit 314f738

Please sign in to comment.