Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Poignant <[email protected]>
  • Loading branch information
thomaspoignant committed Aug 7, 2023
1 parent dc9ed21 commit 963640f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ private <T> ProviderEvaluation<T> getEvaluation(
}

if (cache == null) {
return resolveEvaluationGoFeatureFlagProxy(key, defaultValue, user, expectedType).getProviderEvaluation();
return resolveEvaluationGoFeatureFlagProxy(key, defaultValue, user, expectedType)
.getProviderEvaluation();
}

String cacheKey = buildCacheKey(key, BeanUtils.buildKey(user));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import lombok.experimental.StandardException;

/**
* InvalidTypeInCache is thrown when the type of the flag from the cache is not the one expected
* InvalidTypeInCache is thrown when the type of the flag from the cache is not the one expected.
*/
public class InvalidTypeInCache extends GoFeatureFlagException {
public InvalidTypeInCache(Class<?> expected, Class<?> got) {
super("cache value is not from the expected type, we try a remote evaluation," +
" expected: " + expected + ", got: " + got);
super("cache value is not from the expected type, we try a remote evaluation,"
+ " expected: " + expected + ", got: " + got);
}
}

0 comments on commit 963640f

Please sign in to comment.