Skip to content

Commit 04ab51e

Browse files
committed
lib/Link: gardening
1 parent 4e1d7f6 commit 04ab51e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/Link.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@ var Link = React.createClass({
4141
},
4242

4343
_navigate: function(path, cb) {
44-
if(this.props.globalHash) {
44+
if (this.props.globalHash) {
4545
return Environment.hashEnvironment.navigate(path, cb);
4646
}
4747

48-
return this.props.global ?
49-
Environment.defaultEnvironment.navigate(path, cb) :
50-
this.navigate(path, cb);
48+
if (this.props.global) {
49+
return Environment.defaultEnvironment.navigate(path, cb);
50+
}
51+
52+
return this.navigate(path, cb);
5153
},
5254

5355
render: function() {

0 commit comments

Comments
 (0)