Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Change-Id: Ic1d52d2e4a4da22f2f9ebdbc805174b34c5052b3
Signed-off-by: grapebaba <281165273@qq.com>
  • Loading branch information
GrapeBaBa committed Aug 11, 2016
1 parent eacd0e0 commit 34512a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/chaincode/shim/chaincode.go
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ func getKeyAndVerifyRow(table Table, row Row) ([]Column, error) {
return keys, nil
}

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

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

present, err := stub.isRowPrsent(tableName, key)
present, err := stub.isRowPresent(tableName, key)
if err != nil {
return false, err
}
Expand Down

0 comments on commit 34512a7

Please sign in to comment.