Skip to content

Commit

Permalink
if simplification, javadoc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
caalador committed Feb 28, 2022
1 parent 19ed1c2 commit ebc775d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ protected File getPackageLockFile() {
* Gets the platform pinned versions that are not overridden by the user in
* package.json.
*
* @return JsonObject with the dependencies or empty JsonObject if file
* doesn't exist
* @return {@code JsonObject} with the dependencies or empty
* {@code JsonObject} if file doesn't exist
* @throws IOException
* when versions file could not be read
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ boolean lockVersionForNpm(JsonObject packageJson, String versionsPath)
}
}
for (String dependency : overridesSection.keys()) {
if (!(dependencies.hasKey(dependency)
|| devDependencies.hasKey(dependency))
if (!dependencies.hasKey(dependency)
&& !devDependencies.hasKey(dependency)
&& overridesSection.getString(dependency).startsWith("$")) {
overridesSection.remove(dependency);
versionLockingUpdated = true;
Expand Down

0 comments on commit ebc775d

Please sign in to comment.