Skip to content

Commit

Permalink
fix: core.Context Value method
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaomingqiang committed Feb 11, 2022
1 parent c56c0ff commit dcb9326
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ If you encounter any problems during usage, please let us know by submitting [G

- The latest release candidate provides more [open services API](/service) and bug repair.
```shell
go get github.com/larksuite/oapi-sdk-go@v1.1.43
go get github.com/larksuite/oapi-sdk-go@v1.1.44
```

## Explanation of terms
Expand Down
2 changes: 1 addition & 1 deletion README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
---

```shell
go get github.com/larksuite/oapi-sdk-go@v1.1.43
go get github.com/larksuite/oapi-sdk-go@v1.1.44
```

## 术语解释
Expand Down
5 changes: 3 additions & 2 deletions core/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ func (c *Context) Err() error {

func (c *Context) Value(key interface{}) interface{} {
if keyAsString, ok := key.(string); ok {
val, _ := c.Get(keyAsString)
return val
if val, ok := c.Get(keyAsString); ok {
return val
}
}
return c.c.Value(key)
}
2 changes: 1 addition & 1 deletion core/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package core

const SdkVersion = "v1.1.43"
const SdkVersion = "v1.1.44"

0 comments on commit dcb9326

Please sign in to comment.