Skip to content

Commit bccb50b

Browse files
committed
Fix bug in PutObject()
1 parent d6c7e21 commit bccb50b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

storage/casdoor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (p *CasdoorProvider) ListObjects(prefix string) ([]*Object, error) {
5555
}
5656

5757
func (p *CasdoorProvider) PutObject(user string, parent string, key string, fileBuffer *bytes.Buffer) error {
58-
_, _, err := casdoorsdk.UploadResource(user, "Casibase", parent, fmt.Sprintf("Direct/%s/%s", &p.providerName, key), fileBuffer.Bytes())
58+
_, _, err := casdoorsdk.UploadResource(user, "Casibase", parent, fmt.Sprintf("Direct/%s/%s", p.providerName, key), fileBuffer.Bytes())
5959
if err != nil {
6060
return err
6161
}

0 commit comments

Comments
 (0)