Skip to content

Commit

Permalink
refactor: remove unnecessary check and creation of config file
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgnhnt96 committed Feb 28, 2024
1 parent e912f8a commit a22dbc3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/src/services/project_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ class ProjectService extends ContextService {
final configFile = project.configPath.file;
final legacyConfigFile = project.legacyConfigPath.file;

// If config file does not exists create it
if (!configFile.existsSync()) {
configFile.createSync(recursive: true);
}

final jsonContents = prettyJson(config.toMap());

configFile.write(jsonContents);
Expand Down

0 comments on commit a22dbc3

Please sign in to comment.