]> git.sur5r.net Git - i3/i3/blobdiff - testcases/lib/i3test.pm
cleanup temporary directory when restarting and not using XDG_RUNTIME_DIR
[i3/i3] / testcases / lib / i3test.pm
index 5dd96acd8b6efae338890b1075b110a879e31430..a6b982bafd8e18b0b281ccc58ab104236950a1a5 100644 (file)
@@ -783,7 +783,7 @@ To avoid caching:
 =cut
 sub get_socket_path {
     my ($cache) = @_;
-    $cache ||= 1;
+    $cache //= 1;
 
     if ($cache && defined($_cached_socket_path)) {
         return $_cached_socket_path;