* MM-41211: Accepts a decimal for the SSO session length. * MM-41211: Fixes test and logic error. * MM-41211: Validates session length is minimum 1 hour. * MM-41211: Tricking the CI to allow an empty string. * Fixes a test error and some lint changes. * Fix error. * Reverting IDE change. Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
11 строки
378 B
Go
11 строки
378 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package model
|
|
|
|
func NewBool(b bool) *bool { return &b }
|
|
func NewInt(n int) *int { return &n }
|
|
func NewInt64(n int64) *int64 { return &n }
|
|
func NewString(s string) *string { return &s }
|
|
func NewFloat32(s float32) *float32 { return &s }
|