Skip to content

Commit

Permalink
use proper raise args
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Nov 26, 2014
1 parent c060aa2 commit 4b11643
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
7 changes: 0 additions & 7 deletions .rubocop.yml
Expand Up @@ -150,16 +150,9 @@ Style/MultilineOperationIndentation:
Style/NegatedIf:
Enabled: false

# Offense count: 66
# Cop supports --auto-correct.
Style/NumericLiterals:
MinDigits: 4

# Offense count: 1
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/RaiseArgs:
Enabled: false

# Offense count: 14
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleReturnValues.
Expand Down
10 changes: 5 additions & 5 deletions src/include/bootloader/routines/misc.rb
Expand Up @@ -498,10 +498,10 @@ def getConsoleValue
parity = ""
word = ""
Builtins.foreach(list_serial) do |key|
unit = getKeyValue(key) if Builtins.search(key, "--unit") != nil
speed = getKeyValue(key) if Builtins.search(key, "--speed") != nil
parity = getKeyValue(key) if Builtins.search(key, "--parity") != nil
word = getKeyValue(key) if Builtins.search(key, "--word") != nil
unit = getKeyValue(key) unless Builtins.search(key, "--unit").nil?
speed = getKeyValue(key) unless Builtins.search(key, "--speed").nil?
parity = getKeyValue(key) unless Builtins.search(key, "--parity").nil?
word = getKeyValue(key) unless Builtins.search(key, "--word").nil?
end
# build value
ret = buildConsoleValue(unit, speed, parity, word)
Expand Down Expand Up @@ -572,7 +572,7 @@ def HandleConsole2

console_value = getConsoleValue

if Ops.get(@globals, "append") != nil
if !Ops.get(@globals, "append").nil?
updated_append = ""
if console_value != "" || !console_value.nil?
updated_append = UpdateSerialConsole(
Expand Down
2 changes: 1 addition & 1 deletion src/lib/bootloader/boot_record_backup.rb
Expand Up @@ -69,7 +69,7 @@ def write
# @raise [::Bootloader::BootRecordBackup::Missing] if backup missing
# @return true if copy is successful
def restore
raise Missing.new unless exists?
raise Missing unless exists?

# Copy only 440 bytes for Vista booting problem bnc #396444
# and also to not destroy partition table
Expand Down

0 comments on commit 4b11643

Please sign in to comment.