From fcb645ce25c654561b53d039e1e1bbf6d91de9d6 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Sun, 23 Apr 2017 21:53:18 +0200 Subject: Remove the \? in some method signatures --- lib/Config.pm6 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Config.pm6 b/lib/Config.pm6 index abf2b44..16aa7f7 100644 --- a/lib/Config.pm6 +++ b/lib/Config.pm6 @@ -19,7 +19,7 @@ class Config is export return self.load($!path); } - multi method read(Str $path, Str $parser? = "") + multi method read(Str $path, Str $parser = "") { Config::Exception::FileNotFoundException.new.throw() unless $path.IO.f; @@ -36,7 +36,7 @@ class Config is export $!content = $hash; } - method write(Str $path, Str $parser? = "") + method write(Str $path, Str $parser = "") { $parser = self.get-parser($path, $parser); @@ -57,7 +57,7 @@ class Config is export $index; } - multi method get(@keyparts, Any $default? = Nil) + multi method get(@keyparts, Any $default = Nil) { my $index = $!content; @@ -97,7 +97,7 @@ class Config is export self; } - method get-parser(Str $path, Str $parser? = "") + method get-parser(Str $path, Str $parser = "") { if ($parser ne "") { return $parser; -- cgit v1.1