Commit 9de57d28 authored by Emiliano Balbuena's avatar Emiliano Balbuena

(cs): Lint (ii)

1 merge request!651(fix): Mass NSFW XHR trigger when admins view posts
Pipeline #95114819 running with stages
export * from './text-input-autocomplete.module';
export {
TextInputAutocompleteMenuComponent,
} from './text-input-autocomplete-menu.component';
export { TextInputAutocompleteMenuComponent } from './text-input-autocomplete-menu.component';
......@@ -79,9 +79,7 @@ export class FeaturedContentComponent implements OnInit {
component
);
const componentRef: ComponentRef<
any
> = this.dynamicHost.viewContainerRef.createComponent(
const componentRef: ComponentRef<any> = this.dynamicHost.viewContainerRef.createComponent(
componentFactory,
void 0,
this.injector
......
......@@ -81,9 +81,10 @@ export class UpdateMarkersService {
if (!opts.marker) throw 'marker must be set';
if (!opts.noReply) {
this.http
.post('api/v2/notifications/markers/read', opts)
.subscribe(res => null, err => console.warn(err));
this.http.post('api/v2/notifications/markers/read', opts).subscribe(
res => null,
err => console.warn(err)
);
}
for (let i = 0; i < this.data.length; i++) {
......
......@@ -132,10 +132,9 @@ describe('GroupsMembersModuleComponent', () => {
tick();
expect(membersComponent.load).toHaveBeenCalled();
expect(clientMock.get).toHaveBeenCalledWith(
'api/v1/groups/membership/11111',
{ limit: 21 }
);
expect(
clientMock.get
).toHaveBeenCalledWith('api/v1/groups/membership/11111', { limit: 21 });
expect(membersComponent.members).toEqual(successfulGroupResponse.members);
}));
......
......@@ -61,9 +61,9 @@ export class NewsfeedEntityComponent {
this.getComponent(this.entity.type)
);
let componentRef: ComponentRef<
any
> = this.host.viewContainerRef.createComponent(componentFactory);
let componentRef: ComponentRef<any> = this.host.viewContainerRef.createComponent(
componentFactory
);
componentRef.instance.entity = this.entity;
componentRef.changeDetectorRef.detectChanges();
}
......
......@@ -153,9 +153,9 @@ export class ProSettingsComponent implements OnInit, OnDestroy {
getPreviewAssetSrc(type: string): string | SafeUrl {
if (this.settings[type]) {
if (!this.settings[type]._mindsBlobUrl) {
this.settings[type]._mindsBlobUrl = URL.createObjectURL(this.settings[
type
] as File);
this.settings[type]._mindsBlobUrl = URL.createObjectURL(
this.settings[type] as File
);
}
return this.sanitizer.bypassSecurityTrustUrl(
......
Please register or to comment