mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-14 09:05:09 +00:00
Improve syntax
Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
This commit is contained in:
@@ -259,8 +259,7 @@ class Config
|
||||
end
|
||||
|
||||
# Check if the socket configuration is valid
|
||||
if config.socket_binding
|
||||
sb = config.socket_binding.not_nil!
|
||||
if sb = config.socket_binding
|
||||
if sb.path.ends_with?("/") || File.directory?(sb.path)
|
||||
puts "Config: The socket path " + sb.path + " must not be a directory!"
|
||||
exit(1)
|
||||
|
||||
Reference in New Issue
Block a user