Skip to content

Commit

Permalink
Remove unneeded variable assignment in ArgParser
Browse files Browse the repository at this point in the history
The variable assignments in ArgParser do nothing, so remove them.
  • Loading branch information
mloberg committed Sep 10, 2016
1 parent 696a74c commit d467f20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/jekyll-compose/arg_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ def validate!
end

def type
type = options["extension"] || Jekyll::Compose::DEFAULT_TYPE
options["extension"] || Jekyll::Compose::DEFAULT_TYPE
end

def layout
layout = options["layout"] || Jekyll::Compose::DEFAULT_LAYOUT
options["layout"] || Jekyll::Compose::DEFAULT_LAYOUT
end

def title
Expand All @@ -27,6 +27,6 @@ def force?
end

def source
source = config['source'].gsub(/^#{Regexp.quote(Dir.pwd)}/, '')
config['source'].gsub(/^#{Regexp.quote(Dir.pwd)}/, '')
end
end

0 comments on commit d467f20

Please sign in to comment.