Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 1af8a9f

Browse files
committed
style: fix lint errors
1 parent cbb3d1b commit 1af8a9f

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/lib/api/ext/class.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ export class ClassDirective extends BaseFxDirective
104104

105105
this._ngClassAdapter = new BaseFxDirectiveAdapter('ngClass', monitor, _ngEl, _renderer);
106106
this._classAdapter = new BaseFxDirectiveAdapter('class', monitor, _ngEl, _renderer);
107-
this._classAdapter.cacheInput('class', isBrowser() ? _ngEl.nativeElement.getAttribute('class') || '' : '');
107+
const classValue = isBrowser() ? _ngEl.nativeElement.getAttribute('class') || '' : '';
108+
this._classAdapter.cacheInput('class', classValue);
108109

109110
// Create an instance NgClass Directive instance only if `ngClass=""` has NOT been defined on
110111
// the same host element; since the responsive variations may be defined...

src/lib/api/ext/img-src.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ export class ImgSrcDirective extends BaseFxDirective implements OnInit, OnChange
5858

5959
constructor(elRef: ElementRef, renderer: Renderer2, monitor: MediaMonitor) {
6060
super(monitor, elRef, renderer);
61-
this._cacheInput('src', isBrowser() ? elRef.nativeElement.getAttribute('src') || '' : '');
61+
const srcValue = isBrowser() ? elRef.nativeElement.getAttribute('src') || '' : '';
62+
this._cacheInput('src', srcValue);
6263
}
6364

6465
/**

src/lib/api/ext/style.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ export class StyleDirective extends BaseFxDirective
114114

115115
// Build adapter, `cacheInput()` interceptor, and get current inline style if any
116116
this._buildAdapter(this.monitor, _ngEl, _renderer);
117-
this._base.cacheInput('style', isBrowser() ? _ngEl.nativeElement.getAttribute('style') || '' : '', true);
117+
const styleValue = isBrowser() ? _ngEl.nativeElement.getAttribute('style') || '' : '';
118+
this._base.cacheInput('style', styleValue, true);
118119

119120
// Create an instance NgStyle Directive instance only if `ngStyle=""` has NOT been defined on
120121
// the same host element; since the responsive versions may be defined...

0 commit comments

Comments
 (0)