Skip to content

Commit

Permalink
Gotta make eslint happy :/
Browse files Browse the repository at this point in the history
  • Loading branch information
robotlolita committed Dec 17, 2017
1 parent 4b81fff commit 3af2a42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const nullToString = () => 'null';
* type: (Any) => Bool
*/
const isPlainObject = (object) =>
!object.toString || (object.toString === Object.prototype.toString)
!object.toString || (object.toString === Object.prototype.toString);

/*~
* type: (Null | Object Any) => String
Expand Down
2 changes: 1 addition & 1 deletion packages/base/source/conversions/nullable-to-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const deprecated = require('folktale/helpers/warn-deprecation');
* & (a or None) => Result None a
*/
const nullableToResult = function(a, givenFallback) {
const oldBehaviour = arguments.length < 2;
const oldBehaviour = arguments.length < 2; // eslint-disable-line prefer-rest-params
if (oldBehaviour) {
deprecated(`nullableToResult(value) is being deprecated in favour of providing an explicit fallback value.
nullableToResult(value, fallback) is the new preferred form of this function.
Expand Down
2 changes: 1 addition & 1 deletion packages/base/source/result/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = {
fromNullable(aNullable, fallbackValue) {
const nullableToResult = require('folktale/conversions/nullable-to-result');

if (arguments.length > 1) {
if (arguments.length > 1) { // eslint-disable-line prefer-rest-params
return nullableToResult(aNullable, fallbackValue);
} else {
return nullableToResult(aNullable);
Expand Down

0 comments on commit 3af2a42

Please sign in to comment.