about summary refs log tree commit diff
path: root/third_party/nix/src/nix-channel
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/nix-channel')
-rw-r--r--third_party/nix/src/nix-channel/nix-channel.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/nix/src/nix-channel/nix-channel.cc b/third_party/nix/src/nix-channel/nix-channel.cc
index 40a3c4464d48..767682c0c30d 100644
--- a/third_party/nix/src/nix-channel/nix-channel.cc
+++ b/third_party/nix/src/nix-channel/nix-channel.cc
@@ -18,7 +18,9 @@ static Path channelsList;
 
 // Reads the list of channels.
 static void readChannels() {
-  if (!pathExists(channelsList)) return;
+  if (!pathExists(channelsList)) {
+    return;
+  }
   auto channelsFile = readFile(channelsList);
 
   for (const auto& line :