fix: repair incorrect merge (#3728)
This commit is contained in:
parent
d47692546e
commit
841f289b5d
|
@ -126,7 +126,6 @@ def validate_submission_name(name):
|
||||||
if '.' in name:
|
if '.' in name:
|
||||||
msg += " Did you include a filename extension in the name by mistake?"
|
msg += " Did you include a filename extension in the name by mistake?"
|
||||||
return msg
|
return msg
|
||||||
return None
|
|
||||||
|
|
||||||
components = name.split('-')
|
components = name.split('-')
|
||||||
if '' in components:
|
if '' in components:
|
||||||
|
@ -134,6 +133,8 @@ def validate_submission_name(name):
|
||||||
if len(components) < 3:
|
if len(components) < 3:
|
||||||
return "Name has less than three dash-delimited components in the name."
|
return "Name has less than three dash-delimited components in the name."
|
||||||
|
|
||||||
|
return None
|
||||||
|
|
||||||
def validate_submission_rev(name, rev):
|
def validate_submission_rev(name, rev):
|
||||||
if not rev:
|
if not rev:
|
||||||
return 'Revision not found'
|
return 'Revision not found'
|
||||||
|
|
Loading…
Reference in a new issue