Skip to content

Commit c73e767

Browse files
authored
Please the rubocop god
1 parent e945773 commit c73e767

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

modules/post/windows/manage/archmigrate.rb

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,17 @@ def do_migrate
8989
end
9090
end
9191

92-
93-
9492
def run
95-
if datastore['IGNORE_SYSTEM']
96-
do_migrate
97-
elsif !datastore['IGNORE_SYSTEM'] && is_system?
98-
print_error('You are running as SYSTEM! Aborting migration.')
99-
elsif datastore['IGNORE_SYSTEM'] && is_system?
100-
print_error('You are running as SYSTEM! You will lose your privileges!')
101-
do_migrate
102-
elsif !datastore['IGNORE_SYSTEM'] && !is_system?
103-
print_status('You\'re not running as SYSTEM. Moving on...')
104-
do_migrate
105-
end
93+
if datastore['IGNORE_SYSTEM']
94+
do_migrate
95+
elsif !datastore['IGNORE_SYSTEM'] && is_system?
96+
print_error('You are running as SYSTEM! Aborting migration.')
97+
elsif datastore['IGNORE_SYSTEM'] && is_system?
98+
print_error('You are running as SYSTEM! You will lose your privileges!')
99+
do_migrate
100+
elsif !datastore['IGNORE_SYSTEM'] && !is_system?
101+
print_status('You\'re not running as SYSTEM. Moving on...')
102+
do_migrate
103+
end
106104
end
107105
end

0 commit comments

Comments
 (0)