Skip to content

Commit e662f25

Browse files
Update Horse.JWT.pas
1 parent 960b973 commit e662f25

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/Horse.JWT.pas

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,14 @@ class function THorseJWTCallback.New: THorseJWTCallback;
199199
Result := THorseJWTCallback.Create;
200200
end;
201201

202-
function THorseJWTCallback.SetConfig(
203-
AConfig: THorseJWTConfig): THorseJWTCallback;
202+
function THorseJWTCallback.SetConfig(AConfig: THorseJWTConfig): THorseJWTCallback;
204203
begin
205-
Result := Self;
206-
204+
Result := Self;
207205
if Assigned(AConfig) then
208206
begin
209-
if Assigned(FConfig) and (FConfig <> AConfig) then
210-
FConfig.Free;
211-
FConfig := AConfig;
207+
if Assigned(FConfig) and (FConfig <> AConfig) then
208+
FConfig.Free;
209+
FConfig := AConfig;
212210
end;
213211
end;
214212

@@ -276,4 +274,4 @@ class function THorseJWTConfig.New: THorseJWTConfig;
276274
Result := Self.Create;
277275
end;
278276

279-
end.
277+
end.

0 commit comments

Comments
 (0)