mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
print handling of null MINOR
This commit is contained in:
parent
ed74bbf25a
commit
303ac1bd03
@ -244,6 +244,14 @@ printjson = function(x){
|
||||
|
||||
shellPrintHelper = function( x ){
|
||||
|
||||
if ( typeof( x ) == "undefined" )
|
||||
return;
|
||||
|
||||
if ( x == null ){
|
||||
print( "null" );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( typeof x != "object" )
|
||||
return print( x );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user