No need for a parameter for `Baguette::Configuration#get`

master
Karchnu 2020-10-25 00:39:40 +02:00
parent 8f566cbd79
commit b8d5493f1c
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class Baguette::Configuration
# Check for provided file first,
# then $XDG_CONFIG_HOME/<class>.yml,
# then /etc/baguette/<class>.yml.
def self.get(file : String?)
def self.get(file : String? = nil)
filename = "/" + (self.name.downcase.gsub /baguette::configuration::/, "") + ".yml"
directory = "/baguette"