-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve formatting #117
base: master
Are you sure you want to change the base?
Improve formatting #117
Conversation
ff7a98e
to
43328e0
Compare
@@ -95,7 +97,7 @@ public type SubscriptionFilter object { | |||
|
|||
string headerValue = request.getHeader(http:AUTH_HEADER); | |||
|
|||
if !(headerValue.startsWith(auth:AUTH_SCHEME_BASIC)) { | |||
if (!headerValue.startsWith(auth:AUTH_SCHEME_BASIC)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note - This is swapped here because otherwise no point of wrapping the expression with parentheses.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we just remove the extra parentheses instead.
if (!headerValue.startsWith(auth:AUTH_SCHEME_BASIC)) { | |
if !headerValue.startsWith(auth:AUTH_SCHEME_BASIC) { |
@@ -95,7 +97,7 @@ public type SubscriptionFilter object { | |||
|
|||
string headerValue = request.getHeader(http:AUTH_HEADER); | |||
|
|||
if !(headerValue.startsWith(auth:AUTH_SCHEME_BASIC)) { | |||
if (!headerValue.startsWith(auth:AUTH_SCHEME_BASIC)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we just remove the extra parentheses instead.
if (!headerValue.startsWith(auth:AUTH_SCHEME_BASIC)) { | |
if !headerValue.startsWith(auth:AUTH_SCHEME_BASIC) { |
@@ -3,16 +3,16 @@ import ballerina/config; | |||
import ballerina/http; | |||
|
|||
# Listener for results tabulation to deliver results to us. | |||
listener http:Listener resultsListener = new (config:getAsInt("eclk.pub.port", 8181), { | |||
listener http:Listener resultsListener = new(config:getAsInt("eclk.pub.port", 8181), { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The standard we follow is to leave a space to be consistent with
listener http:Listener resultsListener = new http:Listener(config:getAsInt("eclk.pub.port", 8181), {
@Shan1024 Shall we do the aforementioned suggestion to get the changes merged? |
This PR improves formatting and reorders imports.