mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
リポジトリ作成ロジック修正
This commit is contained in:
parent
c4427313b0
commit
d561bf2ea6
|
@ -18,11 +18,11 @@ public class DebugFuncImpl implements DebugFunc {
|
|||
RepoUtils repoUtils;
|
||||
|
||||
public Repository getOrCreateRepositoryById(String id) {
|
||||
// Repository repo = repoUtils.getRepo(id); // TODO-rca: リポジトリの存在確認をもうすこしなんとかする
|
||||
// if (repo == null) {
|
||||
// repo = repoUtils.createRepo(id);
|
||||
// }
|
||||
Repository repo = repoUtils.createRepo(id); // debug
|
||||
Repository repo = repoUtils.getRepo(id); // TODO-rca: リポジトリの存在確認をもうすこしなんとかする
|
||||
if (repo == null) {
|
||||
repo = repoUtils.createRepo(id);
|
||||
}
|
||||
// Repository repo = repoUtils.createRepo(id); // debug
|
||||
return repo;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user