about summary refs log tree commit diff
path: root/src/nix-store
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-02-12T12·33-0500
committerShea Levy <shea@shealevy.com>2014-02-12T12·33-0500
commitf67f52751f21b2fe70b5a7352053f130eb6f0f59 (patch)
tree99c97493219638bb1141a63cb1be63e51cab80de /src/nix-store
parent62eb9eb76ddacc1aa97400bef9f25b6ca4c50c8c (diff)
Indendation fix
Signed-off-by: Shea Levy <shea@shealevy.com>
Diffstat (limited to 'src/nix-store')
-rw-r--r--src/nix-store/nix-store.cc40
1 files changed, 19 insertions, 21 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc
index 038f099649b0..350a4ce0fa37 100644
--- a/src/nix-store/nix-store.cc
+++ b/src/nix-store/nix-store.cc
@@ -863,30 +863,28 @@ static void opServe(Strings opFlags, Strings opArgs)
                     break;
                 }
                 switch (qCmd) {
-                    case qCmdHave:
-                        {
-                            PathSet paths = readStrings<PathSet>(in);
-                            writeStrings(store->queryValidPaths(paths), out);
-                        }
+                    case qCmdHave: {
+                        PathSet paths = readStrings<PathSet>(in);
+                        writeStrings(store->queryValidPaths(paths), out);
                         break;
-                    case qCmdInfo:
-                        {
-                            PathSet paths = readStrings<PathSet>(in);
-                            // !!! Maybe we want a queryPathInfos?
-                            foreach (PathSet::iterator, i, paths) {
-                                if (!store->isValidPath(*i))
-                                    continue;
-                                ValidPathInfo info = store->queryPathInfo(*i);
-                                writeString(info.path, out);
-                                writeString(info.deriver, out);
-                                writeStrings(info.references, out);
-                                // !!! Maybe we want compression?
-                                writeLongLong(info.narSize, out); // downloadSize
-                                writeLongLong(info.narSize, out);
-                            }
-                            writeString("", out);
+                    }
+                    case qCmdInfo: {
+                        PathSet paths = readStrings<PathSet>(in);
+                        // !!! Maybe we want a queryPathInfos?
+                        foreach (PathSet::iterator, i, paths) {
+                            if (!store->isValidPath(*i))
+                                continue;
+                            ValidPathInfo info = store->queryPathInfo(*i);
+                            writeString(info.path, out);
+                            writeString(info.deriver, out);
+                            writeStrings(info.references, out);
+                            // !!! Maybe we want compression?
+                            writeLongLong(info.narSize, out); // downloadSize
+                            writeLongLong(info.narSize, out);
                         }
+                        writeString("", out);
                         break;
+                    }
                     default:
                         throw Error(format("unknown serve query `%1%'") % cmd);
                 }