Skip to content

Commit

Permalink
remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
cromega committed Dec 18, 2017
1 parent 5e0d6ae commit 8f33df1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/vagrant-linode/actions/create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def call(env)
)
env[:ui].info "volume #{volume_name} attached"
else
raise Errors::VolumeSizeMissing unless volume[:size] && volume[:size].to_i > 0
raise Errors::VolumeSizeMissing unless volume[:size].to_i > 0
@client.volume.create(
size: volume[:size],
label: volume_name,
Expand Down
2 changes: 1 addition & 1 deletion lib/vagrant-linode/actions/rebuild.rb
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def call(env)
)
env[:ui].info "volume #{volume_name} attached"
else
raise Errors::VolumeSizeMissing unless volume[:size] && volume[:size].to_i > 0
raise Errors::VolumeSizeMissing unless volume[:size].to_i > 0
@client.volume.create(
size: volume[:size],
label: volume_name,
Expand Down

0 comments on commit 8f33df1

Please sign in to comment.