Fix return val and hardcoded None
This commit is contained in:
parent
d539c73318
commit
b06728c553
1 changed files with 3 additions and 2 deletions
|
@ -3,8 +3,8 @@ from file_handlers import FileHandler
|
||||||
|
|
||||||
class Version():
|
class Version():
|
||||||
|
|
||||||
def __init__(self, version_list, release_type):
|
def __init__(self, version_list: list):
|
||||||
self.version_list = None
|
self.version_list = version_list
|
||||||
self.version_string = None
|
self.version_string = None
|
||||||
self.is_snapshot = None
|
self.is_snapshot = None
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@ class Version():
|
||||||
self.version_string = ".".join([str(x) for x in self.version_list])
|
self.version_string = ".".join([str(x) for x in self.version_list])
|
||||||
if self.is_snapshot:
|
if self.is_snapshot:
|
||||||
self.version_string += "-SNAPSHOT"
|
self.version_string += "-SNAPSHOT"
|
||||||
|
return self.version_string
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create_release_version(cls, version_list, release_type):
|
def create_release_version(cls, version_list, release_type):
|
||||||
|
|
Loading…
Reference in a new issue