Skip to content

Commit

Permalink
Standardrb
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Dec 4, 2023
1 parent 3f47830 commit aec3e20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/syntax_suggest/code_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class CodeSearch

def initialize(source, record_dir: DEFAULT_VALUE)
record_dir = if record_dir == DEFAULT_VALUE
ENV["SYNTAX_SUGGEST_RECORD_DIR"] || ENV["SYNTAX_SUGGEST_DEBUG"] ? "tmp" : nil
(ENV["SYNTAX_SUGGEST_RECORD_DIR"] || ENV["SYNTAX_SUGGEST_DEBUG"]) ? "tmp" : nil
else
record_dir
end
Expand Down
2 changes: 1 addition & 1 deletion lib/syntax_suggest/display_invalid_blocks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def initialize(code_lines:, blocks:, io: $stderr, filename: nil, terminal: DEFAU
@filename = filename
@code_lines = code_lines

@terminal = terminal == DEFAULT_VALUE ? io.isatty : terminal
@terminal = (terminal == DEFAULT_VALUE) ? io.isatty : terminal
end

def document_ok?
Expand Down

0 comments on commit aec3e20

Please sign in to comment.