Skip to content

Commit c6fa1fd

Browse files
thomaspoignanttoddbaert
authored andcommitted
fix: use isEmpty and not equals
Signed-off-by: Thomas Poignant <[email protected]>
1 parent b8116ab commit c6fa1fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/controller/GoFeatureFlagController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public <T> EvaluationResponse<T> evaluateFlag(
142142
requestMapper.writeValueAsBytes(goffRequest),
143143
MediaType.get("application/json; charset=utf-8")));
144144

145-
if (this.apiKey != null && !"".equals(this.apiKey)) {
145+
if (this.apiKey != null && !this.apiKey.isEmpty()) {
146146
reqBuilder.addHeader(HttpHeaders.AUTHORIZATION, BEARER_TOKEN + this.apiKey);
147147
}
148148

0 commit comments

Comments
 (0)