Skip to content

Commit

Permalink
formatting code with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
rajitha1998 committed Jan 25, 2020
1 parent 9b7d7ec commit 99fe29b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "arrowParens": "always" }
2 changes: 1 addition & 1 deletion examples/compute/google.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ gceCompute
.list({
maxResults: 1
})
.then(res => {
.then((res) => {
// console.log(res);
})
.catch((err) => {
Expand Down
2 changes: 1 addition & 1 deletion lib/core/base-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Provider {
let providersToLoad = {};

if (options && options.hasOwnProperty("overrideProviders")) {
ncConfig.map(provider => {
ncConfig.map((provider) => {
const module = provider.plugin;
providersToLoad[provider.tag] = module(provider.configPath);
});
Expand Down
5 changes: 1 addition & 4 deletions test/core/base-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ const providers = require("../../lib/providers");

describe("Base provider", () => {
it("should return AWS provider", (done) => {
const ncAWS = new NcProvider(
providers.AWS,
null,
);
const ncAWS = new NcProvider(providers.AWS, null);

assert.typeOf(ncAWS, "object");
done();
Expand Down

0 comments on commit 99fe29b

Please sign in to comment.