Skip to content

Commit 2619143

Browse files
committed
windows/svc: use UTF16PtrToString in manager config
1 parent 29373c8 commit 2619143

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

windows/svc/mgr/config.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ type Config struct {
4747
}
4848

4949
func toString(p *uint16) string {
50-
if p == nil {
51-
return ""
52-
}
5350
return windows.UTF16PtrToString(p, 4096)
5451
}
5552

0 commit comments

Comments
 (0)