diff options
author | Jean byroot Boussier <[email protected]> | 2022-01-21 11:04:56 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2022-05-20 17:32:18 +0900 |
commit | bd8df25cdc8e0e94cbc2eacc492a764e6b90833c (patch) | |
tree | 0da6aa79ab6701a823f479712b452423ebfb4988 /lib | |
parent | ec7b42eb774222b31f6621413d3b7714f049cfb2 (diff) |
[ruby/did_you_mean] Fix `frozen_string_literal is ignored after any tokens` warning. (https://github.com/ruby/did_you_mean/pull/172)
```
did_you_mean/formatters/verbose_formatter.rb:5: warning: `frozen_string_literal' is ignored after any tokens
```
https://github.com/ruby/did_you_mean/commit/531760f323
Diffstat (limited to 'lib')
-rw-r--r-- | lib/did_you_mean/formatters/verbose_formatter.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/did_you_mean/formatters/verbose_formatter.rb b/lib/did_you_mean/formatters/verbose_formatter.rb index 8ee98fa070..f6623681f2 100644 --- a/lib/did_you_mean/formatters/verbose_formatter.rb +++ b/lib/did_you_mean/formatters/verbose_formatter.rb @@ -1,8 +1,9 @@ +# frozen-string-literal: true + warn "`require 'did_you_mean/formatters/verbose_formatter'` is deprecated and falls back to the default formatter. " require_relative '../formatter' -# frozen-string-literal: true module DidYouMean # For compatibility: VerboseFormatter = Formatter |