Skip to content

Commit c2a7e37

Browse files
format
1 parent d69d915 commit c2a7e37

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/OptimizationNLopt/src/OptimizationNLopt.jl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,23 +79,23 @@ end
7979

8080
function __nlopt_status_to_ReturnCode(status::Symbol)
8181
if status in Symbol.([
82-
NLopt.SUCCESS,
83-
NLopt.STOPVAL_REACHED,
84-
NLopt.FTOL_REACHED,
85-
NLopt.XTOL_REACHED,
86-
])
82+
NLopt.SUCCESS,
83+
NLopt.STOPVAL_REACHED,
84+
NLopt.FTOL_REACHED,
85+
NLopt.XTOL_REACHED,
86+
])
8787
return ReturnCode.Success
8888
elseif status == Symbol(NLopt.MAXEVAL_REACHED)
8989
return ReturnCode.MaxIters
9090
elseif status == Symbol(NLopt.MAXTIME_REACHED)
9191
return ReturnCode.MaxTime
9292
elseif status in Symbol.([
93-
NLopt.OUT_OF_MEMORY,
94-
NLopt.INVALID_ARGS,
95-
NLopt.FAILURE,
96-
NLopt.ROUNDOFF_LIMITED,
97-
NLopt.FORCED_STOP,
98-
])
93+
NLopt.OUT_OF_MEMORY,
94+
NLopt.INVALID_ARGS,
95+
NLopt.FAILURE,
96+
NLopt.ROUNDOFF_LIMITED,
97+
NLopt.FORCED_STOP,
98+
])
9999
return ReturnCode.Failure
100100
else
101101
return ReturnCode.Default

0 commit comments

Comments
 (0)