Skip to content

Commit dcb5657

Browse files
committed
fix: rm redundant check
Signed-off-by: Yeganathan S <63534555+skwowet@users.noreply.github.com>
1 parent 48134bd commit dcb5657

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

services/apps/git_integration/src/crowdgit/services/affiliation/affiliation_service.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,8 @@ async def discover_affiliation_file(
311311
matches = await self.find_known_file_matches(repo_path)
312312

313313
if len(matches) == 1:
314-
only_match = matches[0]
315-
if self.is_text_file_path(only_match):
316-
self.logger.info(f"Affiliation file: {only_match}")
317-
return only_match, ai_cost
314+
self.logger.info(f"Affiliation file: {matches[0]}")
315+
return matches[0], ai_cost
318316

319317
if len(matches) > 1:
320318
candidates = matches

0 commit comments

Comments
 (0)