File tree 3 files changed +7
-0
lines changed
packages/material-ui/src/utils
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 7
7
export const specialProperty = 'exact-prop: \u200b' ;
8
8
9
9
function exactProp ( propTypes : Object ) {
10
+ /* istanbul ignore if */
10
11
if ( process . env . NODE_ENV === 'production' ) {
11
12
return propTypes ;
12
13
}
Original file line number Diff line number Diff line change 1
1
// @flow weak
2
2
3
3
function requirePropFactory ( componentNameInError : string ) {
4
+ /* istanbul ignore if */
5
+ if ( process . env . NODE_ENV === 'production' ) {
6
+ return ( ) => null ;
7
+ }
8
+
4
9
const requireProp = ( requiredProp : string ) => (
5
10
props : Object ,
6
11
propName : string ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ function unsupportedProp(
7
7
location ?: string ,
8
8
propFullName ?: string ,
9
9
) {
10
+ /* istanbul ignore if */
10
11
if ( process . env . NODE_ENV === 'production' ) {
11
12
return null ;
12
13
}
You can’t perform that action at this time.
0 commit comments