Skip to content
Snippets Groups Projects
Unverified Commit 43848b73 authored by Sergei Zharinov's avatar Sergei Zharinov Committed by GitHub
Browse files

fix(gomod): Don't append `indirect` mark twice (#20479)

parent 19912422
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,10 @@ export function updateDependency({
}
if (depType === 'indirect') {
newLine += ' // indirect';
newLine = newLine.replace(
regEx(/\s*(?:\/\/\s*indirect(?:\s*;)?\s*)*$/),
' // indirect'
);
}
lines[upgrade.managerData.lineNumber] = newLine;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment