Fix missing __typename checks and standalone var declarations
Add __typename to GraphQL queries and type guards in risk view, risk list, user view, and user list commands to prevent silent garbage output when a wrong node type ID is passed. Wrap standalone var declarations in var () blocks per style guide. Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -24,7 +24,9 @@ import (
|
||||
"go.probo.inc/probo/pkg/cmd/root"
|
||||
)
|
||||
|
||||
var version string = "unknown"
|
||||
var (
|
||||
version string = "unknown"
|
||||
)
|
||||
|
||||
func main() {
|
||||
ios := iostreams.System()
|
||||
|
||||
Reference in New Issue
Block a user