Skip to content

Commit 3f1d147

Browse files
committed
make style check happy
1 parent 6dcc0c6 commit 3f1d147

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

experimental/apps-mcp/lib/providers/databricks/databricks.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ func validateIdentifier(id string) error {
5353

5454
// Allow alphanumeric, underscore, hyphen, and dot for qualified names
5555
for _, ch := range id {
56-
if !((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') ||
57-
(ch >= '0' && ch <= '9') || ch == '_' || ch == '-' || ch == '.') {
56+
isValid := (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') ||
57+
(ch >= '0' && ch <= '9') || ch == '_' || ch == '-' || ch == '.'
58+
59+
if !isValid {
5860
return fmt.Errorf("invalid identifier '%s': contains unsafe characters", id)
5961
}
6062
}

0 commit comments

Comments
 (0)