Skip to content

Commit

Permalink
fix: linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonashenok committed Nov 10, 2023
1 parent 2b61d62 commit d2d807a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ AllCops:
DisplayCopNames: true

Layout/LineLength:
Max: 120
Max: 125
Metrics/MethodLength:
Include:
- 'app/controllers/*'
Expand Down Expand Up @@ -59,4 +59,4 @@ Style/HashEachMethods:
Style/HashTransformKeys:
Enabled: false
Style/HashTransformValues:
Enabled: false
Enabled: false
2 changes: 1 addition & 1 deletion app/controllers/api/v1/reservations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def update

# DELETE /reservations/1
def destroy
if @reservation.destroy!
if @reservation.destroy!
render json: { message: 'Reservation deleted successfully' }, status: :no_content
else
render json: { error: 'Failed to delete Reservation' }, status: :unprocessable_entity
Expand Down
1 change: 0 additions & 1 deletion config/credentials.yml.enc

This file was deleted.

2 changes: 1 addition & 1 deletion spec/model/reservations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
before { user.save }

let(:plane) do
Aeroplane.new( name: "boning 777", model: '[email protected]', image: 'image 1', description: 'Description of the planes',
Aeroplane.new(name: 'boning 777', model: '[email protected]', image: 'image 1', description: 'Description of the planes',
number_of_seats: 6, location: 'Middle Earth', fee: 60.0)
end
before { plane.save }
Expand Down

0 comments on commit d2d807a

Please sign in to comment.