homarr-labs / homarr

Use shorthand promise methods JS-C1004
Anti-pattern
Minor
1 occurrence in this check
Use shorthand promise resolution method
3import { revalidatePath } from "next/cache";
4
5export async function revalidatePathAction(path: string) {
6  return new Promise((resolve) => resolve(revalidatePath(path, "page")));7}