HomePhorge

zaml: avoid calling emit when we don't have anything to output
fbca3b0f3791Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

zaml: avoid calling emit when we don't have anything to output

The nl method allowed an additional string to be output after the newline;
this is seldom used, and the default implementation resulted in emitting an
empty string.

We can just skip that, for a minor win in function call count.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU4f6289b286ea: zaml: add whitespace for readability.
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPUfbca3b0f3791: zaml: avoid calling emit when we don't have anything to output (authored by Daniel Pittman <daniel@puppetlabs.com>).Sep 19 2012, 1:44 AM