Skip to content

Commit 7138426

Browse files
author
Evell Lam
committed
Merge pull request #3 from DataDog/evlam/flex-checks
Remove unneeded print statements
2 parents 4fcd531 + 749b359 commit 7138426

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

py_find_injection/__init__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ def main():
122122
epilog='Exit status is 0 if all files are okay, 1 if any files have an error. Errors are printed to stdout'
123123
)
124124
parser.add_argument('--version', action='version', version='%(prog)s ' + __version__)
125-
parser.add_argument('--ci', action='store', required=False)
126125
parser.add_argument('files', nargs='+', help='Files to check')
127126
args = parser.parse_args()
128127

@@ -134,11 +133,7 @@ def main():
134133
errors.extend(these_errors)
135134
if errors:
136135
print '%d total errors' % len(errors)
137-
if args.ci:
138-
return 0
139-
else:
140-
print "More info at https://github.com/DataDog/devops/wiki/Preventing-SQL-Injections."
141-
return 1
136+
return 1
142137
else:
143138
return 0
144139

0 commit comments

Comments
 (0)