Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 000f722

Browse files
committed
minor fixes
1 parent db612b3 commit 000f722

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
var vMax *int64
6666
if it.ValidationMax.Valid {
67-
vMin = ptr.Ref(int64(it.ValidationMax.Int32))
67+
vMax = ptr.Ref(int64(it.ValidationMax.Int32))
6868
}
6969

7070
var monotonic *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
func Convert[F any, T any](a []F, f func(F) T) []T {
223223
if a == nil {
224-
return nil
224+
return []T{}
225225
}
226226

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

0 commit comments

Comments
 (0)