Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize checking of required and default values.
When printing the configuration we now first check if we need to print the value by checking if its a required value or matches the default setting in the config table. By moving it before the big switch we can eliminate quite some duplicate code and always use the right type of value in the union with result types.
- Loading branch information
Marco van Wieringen
committed
Feb 17, 2015
1 parent
10df2e9
commit a7943c0
Showing
2 changed files
with
175 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.