@@ -73,10 +73,10 @@ class Storage {
73
73
)
74
74
} )
75
75
76
- if ( response . result . hasOwnProperty ( 'partitionKey' ) ) {
76
+ if ( Object . prototype . hasOwnProperty . call ( response . result , 'partitionKey' ) ) {
77
77
if (
78
- response . result . partitionKey . hasOwnProperty ( 'userContext' ) &&
79
- response . result . partitionKey . hasOwnProperty ( 'sourceOrigin' )
78
+ Object . prototype . hasOwnProperty . call ( response . result . partitionKey , 'userContext' ) &&
79
+ Object . prototype . hasOwnProperty . call ( response . result . partitionKey , 'sourceOrigin' )
80
80
) {
81
81
let partitionKey = new PartitionKey (
82
82
response . result . partitionKey . userContext ,
@@ -111,10 +111,10 @@ class Storage {
111
111
112
112
let response = await this . bidi . send ( command )
113
113
114
- if ( response . result . hasOwnProperty ( 'partitionKey' ) ) {
114
+ if ( Object . prototype . hasOwnProperty . call ( response . result , 'partitionKey' ) ) {
115
115
if (
116
- response . result . partitionKey . hasOwnProperty ( 'userContext' ) &&
117
- response . result . partitionKey . hasOwnProperty ( 'sourceOrigin' )
116
+ Object . prototype . hasOwnProperty . call ( response . result . partitionKey , 'userContext' ) &&
117
+ Object . prototype . hasOwnProperty . call ( response . result . partitionKey , 'sourceOrigin' )
118
118
) {
119
119
let partitionKey = new PartitionKey (
120
120
response . result . partitionKey . userContext ,
@@ -147,10 +147,10 @@ class Storage {
147
147
148
148
let response = await this . bidi . send ( command )
149
149
150
- if ( response . result . hasOwnProperty ( 'partitionKey' ) ) {
150
+ if ( Object . prototype . hasOwnProperty . call ( response . result , 'partitionKey' ) ) {
151
151
if (
152
- response . result . partitionKey . hasOwnProperty ( 'userContext' ) &&
153
- response . result . partitionKey . hasOwnProperty ( 'sourceOrigin' )
152
+ Object . prototype . hasOwnProperty . call ( response . result . partitionKey , 'userContext' ) &&
153
+ Object . prototype . hasOwnProperty . call ( response . result . partitionKey , 'sourceOrigin' )
154
154
) {
155
155
let partitionKey = new PartitionKey (
156
156
response . result . partitionKey . userContext ,
0 commit comments