Skip to content

Commit

Permalink
Remove trailing spaces in default config
Browse files Browse the repository at this point in the history
  • Loading branch information
sambostock committed Mar 18, 2024
1 parent 517d4de commit 6b87977
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ Sorbet/BuggyObsoleteStrictMemoization:
Checks for the a mistaken variant of the "obsolete memoization pattern" that used to be required
for older Sorbet versions in `#typed: strict` files. The mistaken variant would overwrite the ivar with `nil`
on every call, causing the memoized value to be discarded and recomputed on every call.
This cop will correct it to read from the ivar instead of `nil`, which will memoize it correctly.
The result of this correction will be the "obsolete memoization pattern", which can further be corrected by
the `Sorbet/ObsoleteStrictMemoization` cop.
See `Sorbet/ObsoleteStrictMemoization` for more details.
Enabled: true
VersionAdded: '0.7.3'
Expand Down

0 comments on commit 6b87977

Please sign in to comment.