diff options
author | Robin Gloster <mail@glob.in> | 2019-05-18 09:36:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-18 09:36:24 +0000 |
commit | 6cf583cf2f8d3cb89fa8a4d6edd86f4236862ea6 (patch) | |
tree | 6590fc8630f685b81d4f1a5487a54b31785f3c8b /nixos/modules/services/games | |
parent | d40443ba6de52faf08bb33198c6e501f46b85a89 (diff) | |
parent | 786f02f7a45621b9f628f63649ff92546aff83b7 (diff) | |
download | nixpkgs-6cf583cf2f8d3cb89fa8a4d6edd86f4236862ea6.tar nixpkgs-6cf583cf2f8d3cb89fa8a4d6edd86f4236862ea6.tar.gz nixpkgs-6cf583cf2f8d3cb89fa8a4d6edd86f4236862ea6.tar.bz2 nixpkgs-6cf583cf2f8d3cb89fa8a4d6edd86f4236862ea6.tar.lz nixpkgs-6cf583cf2f8d3cb89fa8a4d6edd86f4236862ea6.tar.xz nixpkgs-6cf583cf2f8d3cb89fa8a4d6edd86f4236862ea6.tar.zst nixpkgs-6cf583cf2f8d3cb89fa8a4d6edd86f4236862ea6.zip |
Merge pull request #60406 from JohnAZoidberg/remove-isnull
treewide: Remove usage of isNull
Diffstat (limited to 'nixos/modules/services/games')
-rw-r--r-- | nixos/modules/services/games/minecraft-server.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/games/minecraft-server.nix b/nixos/modules/services/games/minecraft-server.nix index 7d26d150165..39a68f4b553 100644 --- a/nixos/modules/services/games/minecraft-server.nix +++ b/nixos/modules/services/games/minecraft-server.nix @@ -215,8 +215,8 @@ in { networking.firewall = mkIf cfg.openFirewall (if cfg.declarative then { allowedUDPPorts = [ serverPort ]; allowedTCPPorts = [ serverPort ] - ++ optional (! isNull queryPort) queryPort - ++ optional (! isNull rconPort) rconPort; + ++ optional (queryPort != null) queryPort + ++ optional (rconPort != null) rconPort; } else { allowedUDPPorts = [ defaultServerPort ]; allowedTCPPorts = [ defaultServerPort ]; |