]> git.proxmox.com Git - pve-manager.git/commit
api2: network: improve code readability
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 7 Jun 2023 09:49:07 +0000 (11:49 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 7 Jun 2023 15:04:29 +0000 (17:04 +0200)
commit8961f9f7801628f766a6135c466091a0f254e3b0
treef996aee44ea479dc174dbded3a83ba6bb662ce86
parent9df839bead862726dac0a2231df73993146b9c42
api2: network: improve code readability

nested conditionals stretching over multiple lines are always a bit hard to
untangle, so let's make it explicit:

1. is the interface a bridge
2. if it is, are we looking for one?
3. is it something else that we are looking for?

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/API2/Network.pm