Skip to content

Commit 1c4c6ee

Browse files
committed
Fixed linting
1 parent db73a96 commit 1c4c6ee

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

packages/database/src/core/Repo.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ import {
2121
isEmpty,
2222
map,
2323
safeGet,
24-
stringify,
25-
updateEmulatorBanner
24+
stringify
2625
} from '@firebase/util';
2726

2827
import { ValueEventRegistration } from '../api/Reference_impl';

packages/util/src/emulator.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export function updateEmulatorBanner(
193193
if (
194194
typeof window === 'undefined' ||
195195
typeof document === 'undefined' ||
196-
// !isCloudWorkstation(window.location.host) ||
196+
!isCloudWorkstation(window.location.host) ||
197197
emulatorStatus[name] === isRunningEmulator ||
198198
emulatorStatus[name] || // If already set to use emulator, can't go back to prod.
199199
previouslyDismissed
@@ -217,7 +217,7 @@ export function updateEmulatorBanner(
217217
}
218218
}
219219

220-
function setupBannerStyles(bannerEl: HTMLElement) {
220+
function setupBannerStyles(bannerEl: HTMLElement): void {
221221
bannerEl.style.display = 'flex';
222222
bannerEl.style.background = '#7faaf0';
223223
bannerEl.style.position = 'absolute';
@@ -228,7 +228,7 @@ export function updateEmulatorBanner(
228228
bannerEl.style.alignContent = 'center';
229229
}
230230

231-
function setupIconStyles(prependIcon: SVGElement, iconId: string) {
231+
function setupIconStyles(prependIcon: SVGElement, iconId: string): void {
232232
prependIcon.setAttribute('width', '24');
233233
prependIcon.setAttribute('id', iconId);
234234
prependIcon.setAttribute('height', '24');
@@ -237,7 +237,7 @@ export function updateEmulatorBanner(
237237
prependIcon.style.marginLeft = '-6px';
238238
}
239239

240-
function setupCloseBtn() {
240+
function setupCloseBtn(): HTMLSpanElement {
241241
const closeBtn = document.createElement('span');
242242
closeBtn.style.cursor = 'pointer';
243243
closeBtn.style.paddingLeft = '5px';

0 commit comments

Comments
 (0)