Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit812a786

Browse files
committed
update unit tests and linting
1 parent4ac097b commit812a786

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

‎coderd/idpsync/group.go‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ func (s AGPLIDPSync) SyncGroups(ctx context.Context, db database.Store, user dat
108108
// organization.
109109
orgSettings:=make(map[uuid.UUID]GroupSyncSettings)
110110
fororgID:=rangeuserOrgs {
111-
def,_:=tx.GetDefaultOrganization(ctx)
112-
ifdef.ID==orgID {
113-
fmt.Println("as")
114-
}
115111
settings,err:=s.GroupSyncSettings(ctx,orgID,tx)
116112
iferr!=nil {
117113
// TODO: This error is currently silent to org admins.

‎enterprise/coderd/idpsync_test.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ func TestGetGroupSyncConfig(t *testing.T) {
4747
ctx:=testutil.Context(t,testutil.WaitShort)
4848
dbresv:=runtimeconfig.OrganizationResolver(user.OrganizationID,runtimeconfig.NewStoreResolver(db))
4949
entry:= runtimeconfig.MustNew[*idpsync.GroupSyncSettings]("group-sync-settings")
50+
//nolint:gocritic // Requires system context to set runtime config
5051
err:=entry.SetRuntimeValue(dbauthz.AsSystemRestricted(ctx),dbresv,&idpsync.GroupSyncSettings{Field:"august"})
5152
require.NoError(t,err)
5253

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp