Skip to content

Commit d619ace

Browse files
Update gitown.py
1 parent 3511efb commit d619ace

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitown/gitown.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def main():
105105
parser.add_argument('--codeowners_filename')
106106
args = parser.parse_args()
107107
files = args.filenames[0]
108-
ownership_threshold = int(args.ownership_threshold)
108+
ownership_threshold = int(args.ownership_threshold or DEFAULT_OWNERSHIP_THRESHOLD)
109109
codeowners_filename = args.codeowners_filename
110110

111111
if len(files) == 0:
@@ -120,7 +120,7 @@ def main():
120120
codeowners = CodeOwnersUpdater(
121121
files,
122122
owners,
123-
ownership_threshold=ownership_threshold or DEFAULT_OWNERSHIP_THRESHOLD,
123+
ownership_threshold=ownership_threshold,
124124
codeowners_filename=codeowners_filename or DEFAULT_CODEOWNERS_FILE
125125
)
126126
codeowners.main()

0 commit comments

Comments
 (0)