Skip to content

Commit 027fb67

Browse files
committed
Removed redundant strip
1 parent 12ff27a commit 027fb67

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
66

77
[project]
88
name = "socketsecurity"
9-
version = "2.0.47"
9+
version = "2.0.48"
1010
requires-python = ">= 3.10"
1111
license = {"file" = "LICENSE"}
1212
dependencies = [

Diff for: socketsecurity/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__author__ = 'socket.dev'
2-
__version__ = '2.0.47'
2+
__version__ = '2.0.48'

Diff for: socketsecurity/core/__init__.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,7 @@ def load_files_for_sending(files: List[str], workspace: str) -> List[Tuple[str,
293293
if "\\" in workspace:
294294
workspace = workspace.replace("\\", "/")
295295
for file_path in files:
296-
if "/" in file_path:
297-
_, name = file_path.rsplit("/", 1)
298-
else:
299-
name = file_path
296+
_, name = file_path.rsplit("/", 1)
300297

301298
if file_path.startswith(workspace):
302299
key = file_path[len(workspace):]
@@ -305,7 +302,6 @@ def load_files_for_sending(files: List[str], workspace: str) -> List[Tuple[str,
305302

306303
key = key.lstrip("/")
307304
key = key.lstrip("./")
308-
key = key.lstrip(workspace)
309305

310306
f = open(file_path, 'rb')
311307
payload = (key, (name.lstrip(workspace), f))

0 commit comments

Comments
 (0)