From 294543c46ed070db05b7c7587a7962e894ea25ba Mon Sep 17 00:00:00 2001 From: Redkale <8730487+redkale@users.noreply.github.com> Date: Tue, 5 Mar 2019 20:16:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88DataSource=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=89=BE=E4=B8=8D=E5=88=B0unitName=E6=97=B6=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E4=B8=AA=E9=85=8D=E7=BD=AE=E7=9A=84=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/org/redkale/source/DataSources.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/redkale/source/DataSources.java b/src/org/redkale/source/DataSources.java index 898c7f53f..3a595e928 100644 --- a/src/org/redkale/source/DataSources.java +++ b/src/org/redkale/source/DataSources.java @@ -157,7 +157,7 @@ public final class DataSources { writeprop = map.get(unitName + ".write"); } } - if ((unitName == null || unitName.isEmpty()) || readprop == null) { + if (unitName == null || unitName.isEmpty()) { String key = null; for (Map.Entry en : map.entrySet()) { key = en.getKey();