Skip to content

Commit d467f20

Browse files
Remove unneeded variable assignment in ArgParser
The variable assignments in ArgParser do nothing, so remove them.
1 parent 696a74c commit d467f20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/jekyll-compose/arg_parser.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ def validate!
1111
end
1212

1313
def type
14-
type = options["extension"] || Jekyll::Compose::DEFAULT_TYPE
14+
options["extension"] || Jekyll::Compose::DEFAULT_TYPE
1515
end
1616

1717
def layout
18-
layout = options["layout"] || Jekyll::Compose::DEFAULT_LAYOUT
18+
options["layout"] || Jekyll::Compose::DEFAULT_LAYOUT
1919
end
2020

2121
def title
@@ -27,6 +27,6 @@ def force?
2727
end
2828

2929
def source
30-
source = config['source'].gsub(/^#{Regexp.quote(Dir.pwd)}/, '')
30+
config['source'].gsub(/^#{Regexp.quote(Dir.pwd)}/, '')
3131
end
3232
end

0 commit comments

Comments
 (0)