Skip to content

Commit 6730bd0

Browse files
committed
rubocop changes
1 parent 5188efb commit 6730bd0

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src-admintool/queries/obsolete_query.rb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ def get_sql
1818
when o.created > date_add(now(), interval -1 month) then 'PASS'
1919
when o.created > date_add(now(), interval -1 year) then 'INFO'
2020
else 'WARN'
21-
end status
22-
from
21+
end status
22+
from
2323
inv.inv_owners own
2424
inner join inv.inv_objects o
2525
on own.inv_object_id = o.id
26-
where
26+
where
2727
not exists (
28-
select 1
29-
from inv.inv_objects o
30-
where
28+
select 1
29+
from inv.inv_objects o
30+
where
3131
o.inv_owner_id=own.id
3232
)
3333
union
@@ -41,24 +41,24 @@ def get_sql
4141
when o.created > date_add(now(), interval -1 month) then 'PASS'
4242
when o.created > date_add(now(), interval -1 year) then 'INFO'
4343
else 'WARN'
44-
end status
45-
from
44+
end status
45+
from
4646
inv.inv_collections c
4747
inner join inv.inv_objects o
4848
on c.inv_object_id = o.id
49-
where
49+
where
5050
not exists (
51-
select 1
52-
from inv.inv_collections_inv_objects icio
53-
where
51+
select 1
52+
from inv.inv_collections_inv_objects icio
53+
where
5454
icio.inv_collection_id = c.id
5555
)
5656
;
5757
}
5858
end
5959

6060
def get_headers(_results)
61-
['Category', 'Id', 'Mnemonic', 'Name', 'Created', 'Status']
61+
%w[Category Id Mnemonic Name Created Status]
6262
end
6363

6464
def get_types(_results)

0 commit comments

Comments
 (0)