Small perf optm
This commit is contained in:
1 parent
eec4101d29
commit
20120538e4
1 file changed
+4
-1
@@ -57,7 +57,10 @@ namespace Invidious
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function GetInstance() as string
|
function GetInstance() as string
|
||||||
instance = m.node.preferences["invidious.instance"]
|
if m.preferences = invalid
|
||||||
|
m.preferences = m.node.preferences
|
||||||
|
end if
|
||||||
|
instance = m.preferences["invidious.instance"]
|
||||||
if not StringUtils.IsNullOrEmpty(instance)
|
if not StringUtils.IsNullOrEmpty(instance)
|
||||||
return instance
|
return instance
|
||||||
end if
|
end if
|
||||||
|
|||||||
Reference in new issue
Block a user