Permalink
Browse files

removed unnecessary variables

  • Loading branch information...
1 parent d552da2 commit c95e0690310bfeee4971557f0ab869a14b4d55e6 @fb55 fb55 committed Sep 17, 2011
Showing with 6 additions and 7 deletions.
  1. +6 −7 lib/nodepie.js
View
@@ -304,8 +304,7 @@ NodePie.prototype.init = function(){
* title = np.getTitle();
**/
NodePie.prototype.getTitle = function(){
- var title = this.channelElement.title;
- return this._parseContents(title);
+ return this._parseContents(this.channelElement.title);
};
/**
@@ -334,11 +333,11 @@ NodePie.prototype.getEncoding = function(){
* np.init();
* description = np.getDescription();
**/
-NodePie.prototype.getDescription = function(){
- var description = this.channelElement.description || this.channelElement.subtitle ||
- this.channelElement.tagline;
-
- return this._parseContents(description);
+NodePie.prototype.getDescription = function(){
+ return this._parseContents(
+ this.channelElement.description || this.channelElement.subtitle ||
+ this.channelElement.tagline
+ );
};
/**

0 comments on commit c95e069

Please sign in to comment.