Navigation Menu

Skip to content

Commit

Permalink
Use String#[] instead of String#charAt()
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 2, 2012
1 parent 31a45e6 commit 8ea3409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/database/domain.js
Expand Up @@ -203,12 +203,12 @@ Domain.prototype = {
},

getDocumentsEndpoint: function(hostname) {
if (hostname.charAt(0) != '.')
if (hostname[0] != '.')
hostname = '.' + hostname;
return 'doc-' + this.name + '-' + this.id + hostname;
},
getSearchEndpoint: function(hostname) {
if (hostname.charAt(0) != '.')
if (hostname[0] != '.')
hostname = '.' + hostname;
return 'search-' + this.name + '-' + this.id + hostname;
},
Expand Down

0 comments on commit 8ea3409

Please sign in to comment.