Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ formatters:
- Prefix(github.com/device-management-toolkit)
- localmodule
gofumpt:
extra-rules: true
extra:
group-params: true
exclusions:
generated: lax
paths:
Expand Down
6 changes: 4 additions & 2 deletions cmd/app/tray_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ import (
const detachedProcess = 0x00000008

// CreateMutexW returns ERROR_ALREADY_EXISTS when another instance holds the named mutex.
const mutexName = "Local\\DMTConsoleTray"
const errorAlreadyExists uint32 = 183
const (
mutexName = "Local\\DMTConsoleTray"
errorAlreadyExists uint32 = 183
)

// ensureSingleInstance prevents concurrent tray processes via a named mutex.
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,24 @@
"key": "token",
"value": "",
"enabled": true
},
{
"key": "tenantId",
"value": "",
"type": "default",
"enabled": true
},
{
"key": "tenantA",
"value": "tenant-a",
"type": "default",
"enabled": true
},
{
"key": "tenantB",
"value": "tenant-b",
"type": "default",
"enabled": true
}
],
"_postman_variable_scope": "environment",
Expand Down
Loading
Loading