Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
indent
Browse files Browse the repository at this point in the history
  • Loading branch information
sunglim committed Dec 17, 2014
1 parent 78d4af5 commit 55bbc39
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lib/src/cli_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ import 'package:stagehand/stagehand.dart';
const String APP_NAME = 'stagehand';

// This version must be updated in tandem with the pubspec version.
const String APP_VERSION = '0.1.5+1';
const String APP_VERSION = '0.1.5+1'

const String APP_PUB_INFO = 'https://pub.dartlang.org/packages/stagehand.json';

// The Google Analytics tracking ID for stagehand.
const String _GA_TRACKING_ID = 'UA-55033590-1';
Expand Down Expand Up @@ -86,13 +88,12 @@ class CliApp {

if (options['version']) {
_out('${APP_NAME} version: ${APP_VERSION}');
return http.get('https://pub.dartlang.org/packages/stagehand.json')
.then((response) {
List versions = JSON.decode(response.body)['versions'];
if (APP_VERSION != versions.last) {
_out("Version ${versions.last} is available! Run `pub global "
"activate stagehand` to get the latest.");
}
return http.get(APP_PUB_INFO).then((response) {
List versions = JSON.decode(response.body)['versions'];
if (APP_VERSION != versions.last) {
_out("Version ${versions.last} is available! Run `pub global activate"
" stagehand` to get the latest.");
}
}).catchError((e) => null);
}

Expand Down

0 comments on commit 55bbc39

Please sign in to comment.