Skip to content

Commit

Permalink
Fix Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
G8XSU committed Jul 30, 2024
1 parent 07d47d1 commit d550486
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/org/vss/api/AbstractVssApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public abstract class AbstractVssApi {
@Inject
public AbstractVssApi(KVStore kvStore, Authorizer authorizer) {
this.kvStore = kvStore;
this.authorizer = authorizer;
}
this.authorizer = authorizer;
}

Response toResponse(GeneratedMessageV3 protoResponse) {

Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/org/vss/api/GetObjectApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
@Slf4j
public class GetObjectApi extends AbstractVssApi {



@Inject
public GetObjectApi(KVStore kvstore, Authorizer authorizer) {
super(kvstore, authorizer);
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/org/vss/auth/NoopAuthorizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
// A no-operation authorizer, that lets any user-request go through.
public class NoopAuthorizer implements Authorizer {
private static String UNAUTHENTICATED_USER = "unauth-user";

@Override
public AuthResponse verify(HttpHeaders headers) throws AuthException {
return new AuthResponse( UNAUTHENTICATED_USER);
return new AuthResponse(UNAUTHENTICATED_USER);
}
}

0 comments on commit d550486

Please sign in to comment.