fix: remove unreachable code in deleteDomain function (#28312)

The deleteDomain function had a 'return false' statement after
'return isDomainDeleted && isDnsRecordDeleted' which could never
be reached.

Co-authored-by: Harshith Kumar <mharshithkumar6@gmail.com>
This commit is contained in:
Harshith Kumar
2026-03-06 14:05:47 +00:00
committed by GitHub
co-authored by Harshith Kumar
parent f0a7293f71
commit d630556dae
@@ -24,7 +24,6 @@ export const deleteDomain = async (slug: string) => {
isDnsRecordDeleted = await deleteDnsRecord(domain);
}
return isDomainDeleted && isDnsRecordDeleted;
return false;
};
export const createDomain = async (slug: string) => {