HomePhorge

Remove use of defined?()
446a5bf1a097Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Remove use of defined?()

defined?(@macosx_version_major) will still evaluate to TRUE if the
variable is nil. Changed this to if @macosx_version_major which retains
the same functionality and is somewhat easier to test.

Details

Provenance
Gary Larizza <gary@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU0e4079d6b046: Use memoization instead of 'unless'
Branches
Unknown
Tags
Unknown

Event Timeline

Gary Larizza <gary@puppetlabs.com> committed rPU446a5bf1a097: Remove use of defined?() (authored by Gary Larizza <gary@puppetlabs.com>).Sep 29 2011, 7:33 PM