Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weird indent for try/catch inside application #627

Closed
olafurpg opened this issue Dec 19, 2016 · 1 comment
Closed

weird indent for try/catch inside application #627

olafurpg opened this issue Dec 19, 2016 · 1 comment

Comments

@olafurpg
Copy link
Member

olafurpg commented Dec 19, 2016

-      .map(r =>
-        try {
-          val keyedPath = repositoriesPrefixPath(r)
-          val name = sys.env(prefixPath(keyedPath, "NAME"))
-          val sourceName = sys.env(prefixPath(keyedPath, "SOURCE"))
-          if (sourceKeys.contains(sourceName)) {
-            r -> DataObjectMeta(sourceName = sourceName, namespace = name)
-          } else {
-            error(s"$sourceName is not a configured storage source.")
-            r -> DataObjectMeta("", "")
-          }
-        } catch {
-          case e: Throwable =>
-            error(e.getMessage)
-            errors += 1
-            r -> DataObjectMeta("", "")
-      })
+      .map(
+        r =>
+          try {
+            val keyedPath = repositoriesPrefixPath(r)
+            val name = sys.env(prefixPath(keyedPath, "NAME"))
+            val sourceName = sys.env(prefixPath(keyedPath, "SOURCE"))
+            if (sourceKeys.contains(sourceName)) {
+              r -> DataObjectMeta(sourceName = sourceName, namespace = name)
+            } else {
+              error(s"$sourceName is not a configured storage source.")
+              r -> DataObjectMeta("", "")
+            }
+          } catch {
+            case e: Throwable =>
+              error(e.getMessage)
+              errors += 1
+              r -> DataObjectMeta("", "")
+        }
+      )
@olafurpg
Copy link
Member Author

Fixed in #1145, the indent expire was off for lambas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant