Skip to content
Snippets Groups Projects
Unverified Commit f2d162e7 authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

refactor: non-null packageName (#20485)

parent e3c92d2f
No related branches found
No related tags found
No related merge requests found
......@@ -154,6 +154,10 @@ export function extractPackageFile(content: string): PackageFileContent | null {
let currentValue: string | null = null;
function yieldDep(): void {
// istanbul ignore if
if (!packageName) {
return;
}
const depName = getDepName(packageName);
if (depName && currentValue) {
const dep: PackageDependency = {
......
......@@ -110,7 +110,7 @@ export interface PackageDependency<T = Record<string, any>>
fileReplacePosition?: number;
groupName?: string;
lineNumber?: number;
packageName?: string | null;
packageName?: string;
target?: string;
versioning?: string;
dataType?: string;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment