소스 검색

clean code

Yuki Takei 7 년 전
부모
커밋
4ec79d3a4f
1개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 9 2
      config/migrate.js

+ 9 - 2
config/migrate.js

@@ -1,10 +1,17 @@
-const getMongoUri = (env) => {
+/**
+ * Configuration file for migrate-mongo
+ * @see https://github.com/seppevs/migrate-mongo
+ *
+ * @author Yuki Takei <yuki@weseek.co.jp>
+ */
+
+function getMongoUri(env) {
   return env.MONGOLAB_URI || // for B.C.
     env.MONGODB_URI || // MONGOLAB changes their env name
     env.MONGOHQ_URL ||
     env.MONGO_URI ||
     ((env.NODE_ENV === 'test') ? 'mongodb://localhost/growi_test' : 'mongodb://localhost/growi');
-};
+}
 
 const mongoUri = getMongoUri(process.env);
 const match = mongoUri.match(/^(.+)\/([^/]+)$/);