From 252ad93d5e4a1034167badfed67da2f1c6d7ed71 Mon Sep 17 00:00:00 2001 From: Bill Niblock Date: Sun, 7 May 2017 23:43:35 -0400 Subject: [PATCH] sapling/utility.rb: Minor style refactoring --- lib/sapling.rb | 4 +--- lib/sapling/utility.rb | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/sapling.rb b/lib/sapling.rb index 890f562..c80903f 100644 --- a/lib/sapling.rb +++ b/lib/sapling.rb @@ -11,11 +11,9 @@ require_relative 'sapling/utility' # Sapling is the main module for the program. From here, the rest of the world # starts building. module Sapling - # CLI is the class for option parsing, and the gateway to the program, on the # command line class CLI - # Option parsing, and gateway to either reading and traversing a tree, or # editing/creating a tree. def talk(options) @@ -71,7 +69,7 @@ module Sapling end - # Hacky way of dealing with bad options + # Handle bad options gracefully begin opt_parser.parse!(options) rescue OptionParser::InvalidOption diff --git a/lib/sapling/utility.rb b/lib/sapling/utility.rb index 12b13f1..576122a 100644 --- a/lib/sapling/utility.rb +++ b/lib/sapling/utility.rb @@ -55,5 +55,4 @@ def verify_tree(file) end results.include?(false) ? false : true - end