Skip to content

Commit

Permalink
Merge 6aa3e05 into 0d08922
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalduez committed Apr 2, 2015
2 parents 0d08922 + 6aa3e05 commit e510ac7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/environment.js
Expand Up @@ -190,8 +190,6 @@ export default class Environment extends EventEmitter {
* Process `this.theme`.
*/
loadTheme() {
this.themeName = this.theme || 'default';

if (this.theme === undefined) {
return this.defaultTheme();
}
Expand All @@ -201,6 +199,7 @@ export default class Environment extends EventEmitter {
}

let theme = this.resolve(this.theme, this.themeCwd);
this.themeName = this.theme;
this.displayTheme = path.relative(process.cwd(), theme);

return this.tryTheme(theme);
Expand Down Expand Up @@ -251,7 +250,7 @@ export default class Environment extends EventEmitter {
}

this.theme = require('sassdoc-theme-default');
this.themeName = 'default';
this.themeName = this.displayTheme = 'default';
}

/**
Expand Down

0 comments on commit e510ac7

Please sign in to comment.