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

Commit000f722

Browse files
committed
minor fixes
1 parentdb612b3 commit000f722

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎coderd/dynamicparameters/static.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (r *Loader) staticRender(ctx context.Context, db database.Store) (*staticRe
6464

6565
varvMax*int64
6666
ifit.ValidationMax.Valid {
67-
vMin=ptr.Ref(int64(it.ValidationMax.Int32))
67+
vMax=ptr.Ref(int64(it.ValidationMax.Int32))
6868
}
6969

7070
varmonotonic*string

‎coderd/util/slice/slice.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func CountConsecutive[T comparable](needle T, haystack ...T) int {
221221
// Convert converts a slice of type F to a slice of type T using the provided function f.
222222
funcConvert[Fany,Tany](a []F,ffunc(F)T) []T {
223223
ifa==nil {
224-
returnnil
224+
return[]T{}
225225
}
226226

227227
tmp:=make([]T,0,len(a))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp