Skip to content

Commit ad9b93c

Browse files
committed
Fix remaining lint: trailing commas, spaces, selector prefix, indentation
1 parent 0648592 commit ad9b93c

3 files changed

Lines changed: 15 additions & 10 deletions

File tree

src/app/datashare/datashare-submission.service.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Observable } from 'rxjs';
99
import { NotificationsService } from '../shared/notifications/notifications.service';
1010

1111
@Injectable({
12-
providedIn: 'root'
12+
providedIn: 'root',
1313
})
1414
export class DatashareSubmissionService {
1515

@@ -21,8 +21,8 @@ export class DatashareSubmissionService {
2121
public readonly hasUploadFilesErrorsSignal = this._hasUploadFilesErrorsSignal.asReadonly();
2222

2323
constructor(private notificationsService: NotificationsService,
24-
private translate: TranslateService
25-
) {
24+
private translate: TranslateService,
25+
) {
2626
console.log('DatashareSubmissionService created');
2727
}
2828

@@ -60,7 +60,9 @@ export class DatashareSubmissionService {
6060
* @returns Formatted string (e.g., "1.5 MB")
6161
*/
6262
formatBytes(bytes: number): string {
63-
if (bytes === 0) return '0 Bytes';
63+
if (bytes === 0) {
64+
return '0 Bytes';
65+
}
6466

6567
const k = 1024;
6668
const sizes = ['Bytes', 'KB', 'MB', 'GB'];
@@ -114,7 +116,7 @@ export class DatashareSubmissionService {
114116
getDuplicateFileNamesDisplay: () => this.getDuplicateFileNamesDisplay(fileNamesSignal()),
115117
};
116118
}
117-
119+
118120
createObservableDuplicateDetector$(fileNames$: Observable<string[]>): Observable<boolean> {
119121
return new Observable<boolean>(subscriber => {
120122
fileNames$.subscribe(fileNames => {

src/app/datashare/deposit-button/deposit-button.component.spec.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { ComponentFixture, TestBed } from '@angular/core/testing';
1+
import {
2+
ComponentFixture,
3+
TestBed,
4+
} from '@angular/core/testing';
25

36
import { DepositButtonComponent } from './deposit-button.component';
47

@@ -8,10 +11,10 @@ describe('DepositButtonComponent', () => {
811

912
beforeEach(async () => {
1013
await TestBed.configureTestingModule({
11-
imports: [DepositButtonComponent]
14+
imports: [DepositButtonComponent],
1215
})
13-
.compileComponents();
14-
16+
.compileComponents();
17+
1518
fixture = TestBed.createComponent(DepositButtonComponent);
1619
component = fixture.componentInstance;
1720
fixture.detectChanges();

src/app/datashare/deposit-button/deposit-button.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
selector: 'ds-deposit-button',
4+
selector: 'ds-base-deposit-button',
55
standalone: true,
66
imports: [],
77
templateUrl: './deposit-button.component.html',

0 commit comments

Comments
 (0)