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 <[email protected]>
This commit is contained in:
Harshith KumarandHarshith Kumar authored and GitHub committed 2026-03-06 14:05:47 +00:00
1 parent f0a7293f71
commit d630556dae
1 file changed
-1
@@ -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) => {