Skip to content

Commit

Permalink
Update price_calculation.rb: ident corr.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjavurek authored Dec 17, 2024
1 parent ee949bb commit 268b5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/price_calculation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def gross_price(include_deposit=TRUE)

# @return [Number] Price for the foodcoop-member.
def fc_price
add_percent(gross_price(include_deposit=FALSE), FoodsoftConfig[:price_markup]) + fc_deposit
add_percent(gross_price(include_deposit=FALSE), FoodsoftConfig[:price_markup]) + fc_deposit

Check failure on line 16 in app/models/concerns/price_calculation.rb

View workflow job for this annotation

GitHub Actions / test

Layout/IndentationWidth: Use 2 (not 3) spaces for indentation.

Check failure on line 16 in app/models/concerns/price_calculation.rb

View workflow job for this annotation

GitHub Actions / test

Lint/UselessAssignment: Useless assignment to variable - `include_deposit`.

Check failure on line 16 in app/models/concerns/price_calculation.rb

View workflow job for this annotation

GitHub Actions / test

Layout/SpaceAroundOperators: Surrounding space missing for operator `=`.

Check failure on line 16 in app/models/concerns/price_calculation.rb

View workflow job for this annotation

GitHub Actions / test

Lint/DeprecatedConstants: Use `false` instead of `FALSE`, deprecated since Ruby 2.4.
end

def gross_deposit
Expand Down

0 comments on commit 268b5cb

Please sign in to comment.