HomePhorge

Optimize @product_version variable
a6bc5a509a15Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Optimize @product_version variable

Add the ||= assignment operator instead of = so the
self.get_macosx_version_major method doesn't get called
every time we need to evaluate a plist.

Details

Provenance
Gary Larizza <gary@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUaf42ff803e40: Documentation Commit
Branches
Unknown
Tags
Unknown

Event Timeline

Gary Larizza <gary@puppetlabs.com> committed rPUa6bc5a509a15: Optimize @product_version variable (authored by Gary Larizza <gary@puppetlabs.com>).Sep 28 2011, 11:09 PM