fix: use ? suffit for boolean variables
This commit is contained in:
parent
60a7356f8b
commit
ef4ca70eed
3 changed files with 4 additions and 4 deletions
|
@ -20,7 +20,7 @@ module GX::Commands
|
|||
filesystem = @file_system_manager.choose_filesystem
|
||||
raise Models::InvalidFilesystemError.new("Invalid filesystem") if filesystem.nil?
|
||||
@file_system_manager.mount_or_umount(filesystem)
|
||||
@file_system_manager.auto_open(filesystem) if filesystem.mounted? && @config.auto_open
|
||||
@file_system_manager.auto_open(filesystem) if filesystem.mounted? && @config.auto_open?
|
||||
end
|
||||
|
||||
def self.handles_mode
|
||||
|
|
|
@ -20,7 +20,7 @@ module GX::Commands
|
|||
filesystem = @file_system_manager.choose_filesystem
|
||||
raise Models::InvalidFilesystemError.new("Invalid filesystem") if filesystem.nil?
|
||||
filesystem.mount
|
||||
@file_system_manager.auto_open(filesystem) if filesystem.mounted? && @config.auto_open
|
||||
@file_system_manager.auto_open(filesystem) if filesystem.mounted? && @config.auto_open?
|
||||
end
|
||||
|
||||
def self.handles_mode
|
||||
|
|
|
@ -31,11 +31,11 @@ module GX
|
|||
getter home_dir : String
|
||||
getter root : Models::RootConfig?
|
||||
|
||||
property verbose : Bool
|
||||
property? verbose : Bool
|
||||
property mode : Types::Mode
|
||||
property path : String?
|
||||
property args : AddArgs.class | DelArgs.class | NoArgs.class
|
||||
property auto_open : Bool
|
||||
property? auto_open : Bool
|
||||
|
||||
# FIXME: refactor and remove these parts from here
|
||||
property help_options : Parsers::Options::HelpOptions?
|
||||
|
|
Loading…
Reference in a new issue