Skip to content

Commit

Permalink
#1 polished
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 8, 2016
1 parent 45f8235 commit c7aa9a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions 0pdd.rb
Expand Up @@ -28,11 +28,7 @@
require_relative 'version'

cfg = File.join(File.dirname(__FILE__), 'config.yml')
if File.exist?(cfg)
config = YAML.load(File.open(cfg))
else
config = {}
end
config = File.exist?(cfg) ? YAML.load(File.open(cfg)) : {}

before do
@config = config
Expand Down
2 changes: 1 addition & 1 deletion version.rb
Expand Up @@ -20,4 +20,4 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

VERSION = 'BUILD'
VERSION = 'BUILD'.freeze

0 comments on commit c7aa9a1

Please sign in to comment.