From 10a76a5bf0a9d051aa9432566088034c5ced714b Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 14 Feb 2024 17:15:11 +0100 Subject: Lint --- lib/utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/utils.js') diff --git a/lib/utils.js b/lib/utils.js index 25d204a..cee3f47 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -3,7 +3,7 @@ import { kFileNotFoundError } from './constants.js'; // File system utilities -export async function rmIfExists(location) { +export const rmIfExists = async function rmIfExists(location) { try { await access(location, constants.F_OK); @@ -16,9 +16,9 @@ export async function rmIfExists(location) { throw error; } -} +}; -export async function ensureDirectoryExists(directory) { +export const ensureDirectoryExists = async function ensureDirectoryExists(directory) { try { await access(directory); @@ -31,4 +31,4 @@ export async function ensureDirectoryExists(directory) { throw error; } -} +}; -- cgit