Skip to content

Commit

Permalink
Merge pull request #647 from leoafarias/fix/638
Browse files Browse the repository at this point in the history
Added extra check for project
  • Loading branch information
leoafarias authored Feb 23, 2024
2 parents a8de4dd + 14ef849 commit 43369bc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/src/services/project_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ class ProjectService extends ContextService {
final project = Project.loadFromPath(directory.path);

// If project has a config return it
if (project.hasConfig) return project;

// if project has a pubspec file return it
// if (project.hasPubspec) return project;
if (project.hasConfig && project.hasPubspec) return project;

// Return working directory if has reached root
if (isRootDir) return Project.loadFromPath(context.workingDirectory);
Expand Down

0 comments on commit 43369bc

Please sign in to comment.