Skip to content

Commit df50f93

Browse files
authored
refactor(dart_frog_cli): remove redundant dart:io import (#183)
1 parent 5d3ac0d commit df50f93

File tree

1 file changed

+3
-4
lines changed
  • packages/dart_frog_cli/lib/src/commands/dev

1 file changed

+3
-4
lines changed

packages/dart_frog_cli/lib/src/commands/dev/dev.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import 'dart:convert';
22
import 'dart:io' as io;
3-
import 'dart:io';
43

54
import 'package:dart_frog_cli/src/command.dart';
65
import 'package:dart_frog_cli/src/commands/commands.dart';
@@ -33,7 +32,7 @@ typedef Exit = dynamic Function(int exitCode);
3332
RestorableDirectoryGeneratorTarget get _defaultGeneratorTarget {
3433
return RestorableDirectoryGeneratorTarget(
3534
io.Directory(
36-
path.join(Directory.current.path, '.dart_frog'),
35+
path.join(io.Directory.current.path, '.dart_frog'),
3736
),
3837
);
3938
}
@@ -87,7 +86,7 @@ class DevCommand extends DartFrogCommand {
8786
@override
8887
Future<int> run() async {
8988
var hotReloadEnabled = false;
90-
final port = Platform.environment['PORT'] ?? results['port'] as String;
89+
final port = io.Platform.environment['PORT'] ?? results['port'] as String;
9190
final generator = await _generator(dartFrogDevServerBundle);
9291

9392
Future<void> codegen() async {
@@ -161,7 +160,7 @@ class DevCommand extends DartFrogCommand {
161160
return ExitCode.success.code;
162161
}
163162

164-
Future<void> _killProcess(Process process) async {
163+
Future<void> _killProcess(io.Process process) async {
165164
process.kill();
166165
if (_isWindows) {
167166
final result = await _runProcess(

0 commit comments

Comments
 (0)