[snap] refactoring: String formatting method

This commit is contained in:
Vinicius Moreira
2021-12-10 11:14:16 -03:00
parent 34d5234977
commit f34db97661
5 changed files with 32 additions and 29 deletions

View File

@@ -70,7 +70,7 @@ class SnapApplication(SoftwarePackage):
return self.type == 'app'
def get_disk_cache_path(self):
return super(SnapApplication, self).get_disk_cache_path() + '/installed/' + self.name
return f'{super(SnapApplication, self).get_disk_cache_path()}/installed/{self.name}'
def is_trustable(self) -> bool:
return self.verified_publisher