Skip to content

Commit b4634dd

Browse files
committed
chore: format three IF blocks
1 parent fccdadf commit b4634dd

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

sp_HumanEvents/sp_HumanEvents.sql

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,10 +1189,13 @@ END;
11891189
IF @debug = 1 BEGIN RAISERROR(N'Is output database OR schema filled in?', 0, 1) WITH NOWAIT; END;
11901190
IF
11911191
(
1192-
LEN(@output_database_name + @output_schema_name) > 0
1193-
AND @output_schema_name <> N'dbo'
1194-
AND (@output_database_name = N''
1195-
OR @output_schema_name = N'')
1192+
LEN(@output_database_name + @output_schema_name) > 0
1193+
AND @output_schema_name <> N'dbo'
1194+
AND
1195+
(
1196+
@output_database_name = N''
1197+
OR @output_schema_name = N''
1198+
)
11961199
)
11971200
BEGIN
11981201
IF @output_database_name = N''
@@ -1213,8 +1216,8 @@ END;
12131216
IF @debug = 1 BEGIN RAISERROR(N'Is custom name something stupid?', 0, 1) WITH NOWAIT; END;
12141217
IF
12151218
(
1216-
PATINDEX(N'%[^a-zA-Z0-9]%', @custom_name) > 0
1217-
OR @custom_name LIKE N'[0-9]%'
1219+
PATINDEX(N'%[^a-zA-Z0-9]%', @custom_name) > 0
1220+
OR @custom_name LIKE N'[0-9]%'
12181221
)
12191222
BEGIN
12201223
RAISERROR(N'
@@ -1697,9 +1700,12 @@ IF @debug = 1 BEGIN RAISERROR(@start_sql, 0, 1) WITH NOWAIT; END;
16971700
EXECUTE (@start_sql);
16981701

16991702
/* bail out here if we want to keep the session and not log to tables*/
1700-
IF @keep_alive = 1
1701-
AND @output_database_name = N''
1702-
AND @output_schema_name IN (N'', N'dbo')
1703+
IF
1704+
(
1705+
@keep_alive = 1
1706+
AND @output_database_name = N''
1707+
AND @output_schema_name IN (N'', N'dbo')
1708+
)
17031709
BEGIN
17041710
IF @debug = 1
17051711
BEGIN

0 commit comments

Comments
 (0)