diff options
| author | Tim Watson <tim@rabbitmq.com> | 2014-02-17 13:58:23 +0000 |
|---|---|---|
| committer | Tim Watson <tim@rabbitmq.com> | 2014-02-17 13:58:23 +0000 |
| commit | 77bdfef9442629cdb27b5df771898684bd7faee5 (patch) | |
| tree | 85a446c13882e87cb6b873b3032472784f852266 | |
| parent | b2d03a73b533d905b939bfc95d2d51bafd096ad6 (diff) | |
| download | rabbitmq-server-git-77bdfef9442629cdb27b5df771898684bd7faee5.tar.gz | |
Simplify
| -rw-r--r-- | src/rabbit_boot.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_boot.erl b/src/rabbit_boot.erl index d2dca2a4d8..489410fa58 100644 --- a/src/rabbit_boot.erl +++ b/src/rabbit_boot.erl @@ -220,9 +220,8 @@ reload_all(Modules) -> load_mod(Mod) -> case code:is_loaded(Mod) of - {file, preloaded} -> code:load_file(Mod); - {file, Path} -> code:load_abs(Path); - false -> code:load_file(Mod) + {file, Path} when Path /= 'preloaded' -> code:load_abs(Path); + _ -> code:load_file(Mod) end. await_startup(Apps) -> |
