Skip to content

Commit 01f6c25

Browse files
committed
Fixed if logic for generate license
1 parent 637a43d commit 01f6c25

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
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.1.15"
9+
version = "2.1.16"
1010
requires-python = ">= 3.10"
1111
license = {"file" = "LICENSE"}
1212
dependencies = [

socketsecurity/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__author__ = 'socket.dev'
2-
__version__ = '2.1.15'
2+
__version__ = '2.1.16'

socketsecurity/socketcli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def main_code():
260260
output_handler.handle_output(diff)
261261

262262
# Handle license generation
263-
if should_skip_scan and diff.id != "no_diff_id" and config.generate_license:
263+
if not should_skip_scan and diff.id != "no_diff_id" and config.generate_license:
264264
all_packages = {}
265265
for purl in diff.packages:
266266
package = diff.packages[purl]

0 commit comments

Comments
 (0)