Index: tools/gardening/lib/src/bot.dart |
diff --git a/tools/gardening/lib/src/bot.dart b/tools/gardening/lib/src/bot.dart |
index 9d0af669e1515524a553d2cc06273b177cae765e..56015c326c548fd1b315527736db82006c115b60 100644 |
--- a/tools/gardening/lib/src/bot.dart |
+++ b/tools/gardening/lib/src/bot.dart |
@@ -10,16 +10,16 @@ import 'client.dart'; |
import 'util.dart'; |
class Bot { |
- final bool usesLogdog; |
final BuildbotClient _client; |
/// Instantiates a Bot. |
/// |
/// Bots must be [close]d when they aren't needed anymore. |
Bot({bool logdog = false}) |
- : usesLogdog = logdog, |
- _client = |
- logdog ? new LogdogBuildbotClient() : new HttpBuildbotClient(); |
+ : this.internal( |
+ logdog ? new LogdogBuildbotClient() : new HttpBuildbotClient()); |
+ |
+ Bot.internal(this._client); |
int get mostRecentBuildNumber => _client.mostRecentBuildNumber; |