forked from solderpunk/AV-98
Simplify handling of going up from root
This commit is contained in:
parent
620800c9da
commit
7997c40e94
2
av98.py
2
av98.py
|
@ -116,7 +116,7 @@ class GeminiItem():
|
||||||
pathbits.pop()
|
pathbits.pop()
|
||||||
# Don't try to go higher than root
|
# Don't try to go higher than root
|
||||||
if len(pathbits) == 1:
|
if len(pathbits) == 1:
|
||||||
return GeminiItem(self.url)
|
return self
|
||||||
# Get rid of bottom component
|
# Get rid of bottom component
|
||||||
pathbits.pop()
|
pathbits.pop()
|
||||||
new_path = os.path.join(*pathbits)
|
new_path = os.path.join(*pathbits)
|
||||||
|
|
Loading…
Reference in New Issue