Skip to content

Commit 34512a7

Browse files
committed
Fix typo
Change-Id: Ic1d52d2e4a4da22f2f9ebdbc805174b34c5052b3 Signed-off-by: grapebaba <[email protected]>
1 parent eacd0e0 commit 34512a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/chaincode/shim/chaincode.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ func getKeyAndVerifyRow(table Table, row Row) ([]Column, error) {
803803
return keys, nil
804804
}
805805

806-
func (stub *ChaincodeStub) isRowPrsent(tableName string, key []Column) (bool, error) {
806+
func (stub *ChaincodeStub) isRowPresent(tableName string, key []Column) (bool, error) {
807807
keyString, err := buildKeyString(tableName, key)
808808
if err != nil {
809809
return false, err
@@ -822,7 +822,7 @@ func (stub *ChaincodeStub) isRowPrsent(tableName string, key []Column) (bool, er
822822
// Returns -
823823
// true and no error if the row is successfully inserted.
824824
// false and no error if a row already exists for the given key.
825-
// flase and a TableNotFoundError if the specified table name does not exist.
825+
// false and a TableNotFoundError if the specified table name does not exist.
826826
// false and an error if there is an unexpected error condition.
827827
func (stub *ChaincodeStub) insertRowInternal(tableName string, row Row, update bool) (bool, error) {
828828

@@ -836,7 +836,7 @@ func (stub *ChaincodeStub) insertRowInternal(tableName string, row Row, update b
836836
return false, err
837837
}
838838

839-
present, err := stub.isRowPrsent(tableName, key)
839+
present, err := stub.isRowPresent(tableName, key)
840840
if err != nil {
841841
return false, err
842842
}

0 commit comments

Comments
 (0)