Skip to content

Commit 5c32ad8

Browse files
committed
Use ES6 function shorthand
1 parent 7166fd5 commit 5c32ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/PropTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var PropTypes = assign({
66
/**
77
* Requires that the value of a prop be falsy.
88
*/
9-
falsy: function (props, propName, componentName) {
9+
falsy(props, propName, componentName) {
1010
if (props[propName])
1111
return new Error('<' + componentName + '> may not have a "' + propName + '" prop');
1212
}

0 commit comments

Comments
 (0)