File tree 1 file changed +1
-26
lines changed 1 file changed +1
-26
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ declare function instanceOf(
11
11
12
12
// See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
13
13
// See: https://webpack.js.org/guides/production/
14
- export default isProductionEnvironment ( )
14
+ export default process . env . NODE_ENV === 'production'
15
15
? // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
16
16
// eslint-disable-next-line no-shadow
17
17
function instanceOf ( value : mixed , constructor : mixed ) {
@@ -44,28 +44,3 @@ spurious results.`,
44
44
}
45
45
return false ;
46
46
} ;
47
-
48
- /* global Deno */
49
- /* :: declare var Deno: any; */
50
-
51
- function isProductionEnvironment ( ) {
52
- // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
53
- try {
54
- if ( process . env . NODE_ENV === 'production' ) {
55
- return true ;
56
- }
57
- } catch ( e ) {
58
- // ignore
59
- }
60
-
61
- // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
62
- try {
63
- if ( Deno . env . get ( 'DENO_ENV' ) === 'production' ) {
64
- return true ;
65
- }
66
- } catch ( e ) {
67
- // ignore
68
- }
69
-
70
- return false ;
71
- }
You can’t perform that action at this time.
0 commit comments