iilyak commented on PR #5309:
URL: https://github.com/apache/couchdb/pull/5309#issuecomment-2422731682

   > Very nice, @iilyak !
   > 
   > I noticed it has one extra error now after the types were added.
   > 
   > ```
   > src/dreyfus_index.erl:297:17: The variable Error can never match since 
previous clauses completely covered the type
   >           {'ok', non_neg_integer()}
   > ```
   > 
   > I wonder why that is? It would be nice if adding more types would reduce 
the discrepancies and show less errors not more.
   
   This has been fixed by changing return type.
   
   ```diff
   -          {'ok', non_neg_integer()}
   +          {'ok', non_neg_integer()} | error()
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to