| Index: sdk/lib/_internal/pub/lib/src/command/global_deactivate.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/command/global_deactivate.dart b/sdk/lib/_internal/pub/lib/src/command/global_deactivate.dart
|
| index a2eb84d63d1804411b12983ef7f503ec737e6aa1..585d9d1524988d8795bba22fc2cb0581cd2e581a 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/command/global_deactivate.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/command/global_deactivate.dart
|
| @@ -7,7 +7,6 @@ library pub.command.global_deactivate;
|
| import 'dart:async';
|
|
|
| import '../command.dart';
|
| -import '../log.dart' as log;
|
| import '../utils.dart';
|
|
|
| /// Handles the `global deactivate` pub command.
|
| @@ -29,10 +28,7 @@ class GlobalDeactivateCommand extends PubCommand {
|
| usageError("Unexpected $arguments ${toSentence(unexpected)}.");
|
| }
|
|
|
| - var name = commandOptions.rest.first;
|
| - if (!globals.deactivate(name, logDeletion: true)) {
|
| - dataError("No active package ${log.bold(name)}.");
|
| - }
|
| + globals.deactivate(commandOptions.rest.first);
|
| return null;
|
| }
|
| }
|
|
|