mirror of
https://github.com/aykhans/sarin.git
synced 2026-10-16 14:43:53 +00:00
Replace common.ToPtr with Go 1.26 builtin new and add go fix to CI
This commit is contained in:
1 parent
7cb49195f8
commit
3be8ff218c
6 files changed
+28
-21
No files matched your search
@@ -12,7 +12,6 @@ import (
|
||||
"time"
|
||||
|
||||
"go.aykhans.me/sarin/internal/types"
|
||||
"go.aykhans.me/utils/common"
|
||||
"go.yaml.in/yaml/v4"
|
||||
)
|
||||
|
||||
@@ -241,7 +240,7 @@ func (parser ConfigFileParser) ParseYAML(data []byte) (*Config, error) {
|
||||
config.Quiet = parsedData.Quiet
|
||||
|
||||
if parsedData.Output != nil {
|
||||
config.Output = common.ToPtr(ConfigOutputType(*parsedData.Output))
|
||||
config.Output = new(ConfigOutputType(*parsedData.Output))
|
||||
}
|
||||
|
||||
config.Insecure = parsedData.Insecure
|
||||
|
||||
Reference in new issue
Block a user