Skip to content

Commit

Permalink
Remove redundant variable declaration. [#1316 state:resolved] (Victor)
Browse files Browse the repository at this point in the history
  • Loading branch information
savetheclocktower committed Mar 4, 2012
1 parent 6c7ffe2 commit ce46021
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/prototype/lang/object.js
Expand Up @@ -161,9 +161,7 @@
}

function Str(key, holder, stack) {
var value = holder[key],
type = typeof value;

var value = holder[key];
if (Type(value) === OBJECT_TYPE && typeof value.toJSON === 'function') {
value = value.toJSON(key);
}
Expand Down

2 comments on commit ce46021

@victor-homyakov
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot to insert var at line 184:

type = typeof value;

@savetheclocktower
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Please sign in to comment.