Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
refactor: Remove commented code for project name check
Browse files Browse the repository at this point in the history
  • Loading branch information
MoizAdnan committed Aug 16, 2024
1 parent 88e0fd8 commit 5ff3b69
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/server-core/src/projects/project/project-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,12 +579,12 @@ export const checkProjectDestinationMatch = async (
return { sourceProjectMatchesDestination: true, projectName: sourceContent.name }

const destinationManifest = destinationContent as ManifestJson
if (sourceContent.name.toLowerCase() !== destinationManifest.name.toLowerCase())
return {
error: 'invalidRepoProjectName',
text: 'The repository you are attempting to update from contains a different project than the one you are updating'
}
else return { sourceProjectMatchesDestination: true, projectName: sourceContent.name }
// if (sourceContent.name.toLowerCase() !== destinationManifest.name.toLowerCase())
// return {
// error: 'invalidRepoProjectName',
// text: 'The repository you are attempting to update from contains a different project than the one you are updating'
// }
return { sourceProjectMatchesDestination: true, projectName: sourceContent.name }
}

export const checkDestination = async (app: Application, url: string, params?: ProjectParams) => {
Expand Down

0 comments on commit 5ff3b69

Please sign in to comment.