couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From garrensmith <...@git.apache.org>
Subject [GitHub] couchdb-fauxton pull request: fix update-seq
Date Mon, 09 Mar 2015 09:54:57 GMT
Github user garrensmith commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/312#discussion_r26023750
  
    --- Diff: app/addons/databases/resources.js ---
    @@ -137,6 +137,8 @@ function(app, FauxtonAPI, Documents) {
           var updateSeq = this.get("update_seq");
           if (full || (typeof(updateSeq) === 'number')) {
             return updateSeq;
    +      } else if (typeof(updateSeq) === 'string') {
    +        return updateSeq.split('-')[0];
    --- End diff --
    
    I think you can use `_.isNumber` and `_.isString` to be clearer.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message