jaydoane commented on a change in pull request #2101: Refactor 
fabric:cleanup_index_files
URL: https://github.com/apache/couchdb/pull/2101#discussion_r314395343
 
 

 ##########
 File path: src/fabric/src/fabric.erl
 ##########
 @@ -503,26 +504,30 @@ cleanup_index_files() ->
 %% @doc clean up index files for a specific db
 -spec cleanup_index_files(dbname()) -> ok.
 cleanup_index_files(DbName) ->
+    lists:foreach(fn(File) ->
 
 Review comment:
   Getting a syntax error here:
   `/Users/jay/proj/couchdb/src/fabric/src/fabric.erl:507: syntax error before: 
'->'`
   One of the downsides of mixing (heh) elixir and erlang?
   s/fn/fun/

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to