Skip to content

Commit

Permalink
[ Edit ] applied Dart fix and format..
Browse files Browse the repository at this point in the history
  • Loading branch information
anasfik committed Dec 18, 2023
1 parent d051fe6 commit 95e3351
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ class ConfigCreateCommand extends Command<int> {
return await _requestToOverwrite(file, configFileController);
} else {
return await _promptForConfigFileControllerCreation(
configFileController);
configFileController,
);
}
} catch (e) {
logger.err(e.toString());
Expand Down
6 changes: 3 additions & 3 deletions lib/src/commands/debug_info/debug_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import 'package:mason_logger/mason_logger.dart';
/// A command to show some useful info while debugging, this command is made for devlopemnet and it should not appear on production version
/// {@endtemplate}
class DebugInfoCommand extends Command<int> {
/// The logger to use.
final Logger logger;

/// {@macro debug_info_command}
DebugInfoCommand({required this.logger});

/// The logger to use.
final Logger logger;

@override
String get description =>
'show some useful info while debugging, this command is made for devlopemnet and it should not appear on production version';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/commands/start_command/start_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ class StartCommand extends Command<int> {

/// Ensures that the API key is saved in the local database, and that it exists.
int? _ensureApiKeyExists({
String? apiKey,
required Progress configFilesValidationProgress,
String? apiKey,
}) {
if (apiKey == null) {
configFilesValidationProgress.fail(
Expand Down
2 changes: 1 addition & 1 deletion lib/src/etc/controllers/yaml.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class YamlController extends ConfigFileController {

/// Writes the new [config] to the config file.
@override
void writeNewConfig(Map<String, dynamic> config) async {
Future<void> writeNewConfig(Map<String, dynamic> config) async {
super.writeToConfigFileController('langsync:\n');
return _iterateAndWriteToConfigFileController(config);
}
Expand Down

0 comments on commit 95e3351

Please sign in to comment.