File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
cloudinary-core/src/main/java/com/cloudinary Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -85,22 +85,21 @@ private void loadStrategies() {
8585 }
8686
8787 public Cloudinary (Map config ) {
88- this .config = new Configuration (config );
89- loadStrategies ();
88+ this (new Configuration (config ));
9089 }
9190
9291 public Cloudinary (String cloudinaryUrl ) {
93- this .config = Configuration .from (cloudinaryUrl );
94- loadStrategies ();
92+ this (Configuration .from (cloudinaryUrl ));
9593 }
9694
9795 public Cloudinary () {
98- String cloudinaryUrl = System .getProperty ("CLOUDINARY_URL" , System .getenv ("CLOUDINARY_URL" ));
99- if (cloudinaryUrl != null ) {
100- this .config = Configuration .from (cloudinaryUrl );
101- } else {
102- this .config = new Configuration ();
103- }
96+ this (System .getProperty ("CLOUDINARY_URL" , System .getenv ("CLOUDINARY_URL" )) != null
97+ ? Configuration .from (System .getProperty ("CLOUDINARY_URL" , System .getenv ("CLOUDINARY_URL" )))
98+ : new Configuration ());
99+ }
100+
101+ public Cloudinary (Configuration config ) {
102+ this .config = config ;
104103 loadStrategies ();
105104 }
106105
You can’t perform that action at this time.
0 commit comments