Skip to content

Commit

Permalink
Gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
zhugelianglongming committed Feb 23, 2023
1 parent bbbec22 commit 719cb03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kernel/permission/acl/bucket/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func TestAccountBucket_SetAccountACL(t *testing.T) {
t.Errorf("AccountBucket.SetAccountACL() error = %v, wantErr %v", err, tt.wantErr)
}
got := b.DB.(mockContext).Account
if !tt.wantErr && !reflect.DeepEqual(got, tt.want){
if !tt.wantErr && !reflect.DeepEqual(got, tt.want) {
t.Errorf("AccountBucket.SetAccountACL(), DB = %v, want %v", got, tt.want)
}
})
Expand Down
2 changes: 1 addition & 1 deletion kernel/permission/acl/bucket/context_mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (m mockContext) Put(bucket string, key, value []byte) error {
}
m.Account[k] = value
case utils.GetContractBucket():
if strings.HasPrefix(k,"Contract_put_error") {
if strings.HasPrefix(k, "Contract_put_error") {
return errors.New(k)
}
m.Contract[k] = value
Expand Down

0 comments on commit 719cb03

Please sign in to comment.