Skip to content

Commit 8433662

Browse files
authored
chore: Work around an annoying rubocop change (#215)
1 parent 2d665ef commit 8433662

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.rubocop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ Naming/FileName:
3131
Style/BlockDelimiters:
3232
Exclude:
3333
- "test/**/test_*.rb"
34+
Style/DoubleNegation:
35+
Enabled: false

lib/functions_framework/server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def show_error_details= show_error_details
297297
if show_error_details.nil?
298298
!::ENV["FUNCTION_DETAILED_ERRORS"].to_s.empty?
299299
else
300-
show_error_details ? true : false
300+
!!show_error_details
301301
end
302302
end
303303

0 commit comments

Comments
 (0)