Skip to content

Commit 4ae795a

Browse files
committed
Simplify PR
1 parent 8c9dfe3 commit 4ae795a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bindings/azure/cosmosdb/cosmosdb.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (c *CosmosDB) Operations() []bindings.OperationKind {
123123
}
124124

125125
func (c *CosmosDB) Invoke(req *bindings.InvokeRequest) (*bindings.InvokeResponse, error) {
126-
var obj map[string]interface{}
126+
var obj interface{}
127127
err := json.Unmarshal(req.Data, &obj)
128128
if err != nil {
129129
return nil, err
@@ -135,7 +135,6 @@ func (c *CosmosDB) Invoke(req *bindings.InvokeRequest) (*bindings.InvokeResponse
135135
}
136136

137137
_, err = c.client.CreateDocument(c.collection.Self, obj, documentdb.PartitionKey(val))
138-
139138
if err != nil {
140139
return nil, err
141140
}

0 commit comments

Comments
 (0)