[Lens] Remove misleading comment (#157020)

## Summary

This middleware was clearly copied from `optimizing_middleware.ts` along
with a comment. The comment does not apply to the fullscreen middleware.
Removing to avoid confusion.
This commit is contained in:
Drew Tate 2023-05-10 09:09:21 -05:00 committed by GitHub
parent 1a3343dc82
commit 3d77c054c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,6 @@ import { Dispatch, MiddlewareAPI, Action } from '@reduxjs/toolkit';
import { LensGetState, LensStoreDeps } from '.';
import { setToggleFullscreen } from './lens_slice';
/** cancels updates to the store that don't change the state */
export const fullscreenMiddleware = (storeDeps: LensStoreDeps) => (store: MiddlewareAPI) => {
return (next: Dispatch) => (action: Action) => {
if (setToggleFullscreen.match(action)) {