Merge pull request #3348 from code-yeongyu/refactor/ulw-repo-cleanup-20260411

refactor: simplify nullish guards and remove dead no-op paths
This commit is contained in:
YeonGyu-Kim
2026-04-12 18:04:43 +09:00
committed by GitHub
15 changed files with 156 additions and 46 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ export function normalizeSDKResponse<TData>(
fallback: TData,
options?: NormalizeSDKResponseOptions,
): TData {
if (response === null || response === undefined) {
if (response == null) {
return fallback
}
@@ -17,7 +17,7 @@ export function normalizeSDKResponse<TData>(
if (typeof response === "object" && "data" in response) {
const data = (response as { data?: unknown }).data
if (data !== null && data !== undefined) {
if (data != null) {
return data as TData
}