Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove instances of slashes in path.join calls #2310

Merged
merged 2 commits into from May 26, 2023
Merged

Conversation

awharn
Copy link
Member

@awharn awharn commented May 25, 2023

Proposed changes

Resolves #2172 by removing / characters in path.join() calls.

Release Notes

Milestone: v2.9.0

Changelog: Removed "/" characters in path.join() calls.

Types of changes

What types of changes does your code introduce to Zowe Explorer?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Updates to Documentation or Tests (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This checklist will be used as reference for both the contributor and the reviewer

  • I have read the CONTRIBUTOR GUIDANCE wiki
  • PR title follows Conventional Commits Guidelines
  • PR Description is included
  • gif or screenshot is included if visual changes are made
  • yarn workspace vscode-extension-for-zowe vscode:prepublish has been executed
  • All checks have passed (DCO, Jenkins and Code Coverage)
  • I have added unit test and it is passing
  • I have added integration test and it is passing
  • There is coverage for the code that I have added
  • I have tested it manually and there are no regressions found
  • I have added necessary documentation (if appropriate)
  • Any PR dependencies have been merged and published (if appropriate)

Further comments

Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
@awharn awharn added this to the v2.9.0 milestone May 25, 2023
Copy link
Member

@t1m0thyj t1m0thyj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @awharn!

@sonarcloud
Copy link

sonarcloud bot commented May 26, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@zFernand0 zFernand0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 😋

@@ -1057,7 +1057,7 @@ describe("Extension Integration Tests - USS", () => {
const sessChildren2 = await ussTestTree.getChildren(sessChildren1[3]);
sessChildren2[2].dirty = true;
const dirChildren = await ussTestTree.getChildren(sessChildren2[2]);
const localPath = path.join(globals.USS_DIR, "/", testConst.profile.name, dirChildren[0].fullPath);
const localPath = path.join(globals.USS_DIR, testConst.profile.name, dirChildren[0].fullPath || "");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious if there's any difference between ?? "" and || "".
I've seen we use them interchangeably, so it's probably fine

@t1m0thyj t1m0thyj merged commit bfb8116 into main May 26, 2023
12 checks passed
@t1m0thyj t1m0thyj deleted the awharn/fix/2172 branch May 26, 2023 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tech Debt: Use path.join without /
3 participants