Skip to content

Commit

Permalink
refactor: removing unnecessary external
Browse files Browse the repository at this point in the history
  • Loading branch information
asartalo committed Apr 25, 2021
1 parent 063e07d commit 89b25df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/printer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import 'package:ansicolor/ansicolor.dart';

abstract class Printer {
/// Prints a regular string
external void println(String str);
void println(String str);

/// Prints a string signifying success.
external void printSuccess(String str);
void printSuccess(String str);

/// Prints an error string
external void printErr(String str);
void printErr(String str);
}

final red = AnsiPen()..red();
Expand Down
6 changes: 3 additions & 3 deletions lib/release_tools_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ abstract class ReleaseToolsCommand extends Command {
}

mixin VersionCommand on ReleaseToolsCommand {
external FileSystem get fs;
external String get workingDir;
FileSystem get fs;
String get workingDir;

Future<String> getVersionFromArgsOrPubspec() async {
final args = ensureArgResults();
Expand Down Expand Up @@ -67,7 +67,7 @@ class NoPubspecFileFound extends StateError {
}

mixin GitCommand on ReleaseToolsCommand {
external GitExec get git;
GitExec get git;

void gitFromOption() {
argParser.addOption(
Expand Down

0 comments on commit 89b25df

Please sign in to comment.