Skip to content

Commit

Permalink
fix(state): fix state
Browse files Browse the repository at this point in the history
  • Loading branch information
tlancina committed Mar 28, 2016
1 parent 89f560b commit 984f46f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/ionic/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ var fs = require('fs'),
shelljs = require('shelljs'),
Task = require('./task').Task,
_ = require('underscore'),
IonicProject = require('./project'),
IonicAppLib = require('ionic-app-lib'),
IonicProject = IonicAppLib.project,
State = IonicAppLib.state,
Utils = IonicAppLib.utils,
IonicInfo = IonicAppLib.info;
Expand All @@ -56,13 +56,13 @@ IonicTask.prototype.run = function run(ionic, argv) {

this.ionic = ionic;

try {
projectPath = path.resolve('ionic.project');
stats = fs.statSync(projectPath);
} catch (ex) {
this.ionic.fail('You cannot run any state commands on a project that is not an Ionic project.\nTry adding an ionic.project file or running ionic start to get an application to save or restore');
return;
}
// try {
// projectPath = path.resolve('ionic.project');
// stats = fs.statSync(projectPath);
// } catch (ex) {
// this.ionic.fail('You cannot run any state commands on a project that is not an Ionic project.\nTry adding an ionic.project file or running ionic start to get an application to save or restore');
// return;
// }

try {
project = IonicProject.load();
Expand Down

0 comments on commit 984f46f

Please sign in to comment.