Skip to content

Commit

Permalink
lint: make sure variables are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
arlimus committed Oct 16, 2015
1 parent df07e76 commit c01e1f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resources/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class Host < Vulcano.resource(1)

def initialize(hostname, params = {})
@hostname = hostname
@port = params[:port] if params[:port]
@proto = params[:proto] if params[:proto]
@port = params[:port] || nil
@proto = params[:proto] || nil

@host_provider = nil
if vulcano.os.linux?
Expand Down

1 comment on commit c01e1f2

@chef-delivery
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delivery Status:

Verify Build Acceptance
Unit Unit Provision
Lint Lint Deploy
Syntax Syntax Smoke
Quality Functional
Security
Publish

Please sign in to comment.