MCPcopy
hub / github.com/safing/portmaster / startPlatformSpecific

Function startPlatformSpecific

service/core/os_windows.go:9–16  ·  view source on GitHub ↗

only return on Fatal error!

()

Source from the content-addressed store, hash-verified

7
8// only return on Fatal error!
9func startPlatformSpecific() error {
10 // We can't catch errors when calling WindowsNTVersion() in logging, so we call the function here, just to catch possible errors
11 if _, err := osdetail.WindowsNTVersion(); err != nil {
12 log.Errorf("failed to obtain WindowsNTVersion: %s", err)
13 }
14
15 return nil
16}

Callers 1

startFunction · 0.70

Calls 2

WindowsNTVersionFunction · 0.92
ErrorfFunction · 0.92

Tested by

no test coverage detected