Skip to content

Commit

Permalink
Add explicit return types to storage service methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jantoun-scottlogic committed Aug 5, 2024
1 parent 7645c27 commit 9911d9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/services/storage.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export const BROWSER_STORAGE = new InjectionToken<Storage>('Browser Storage', {
export class StorageService {
constructor(@Inject(BROWSER_STORAGE) public storage: Storage) {}

get(key: string) {
get(key: string): string | null {
return this.storage.getItem(key);
}

set(key: string, value: string) {
set(key: string, value: string): void {
return this.storage.setItem(key, value);
}
}

0 comments on commit 9911d9d

Please sign in to comment.