Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

refactor: unnecessary ternary operation #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions OpenIdAuthentication/lambda/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ const sendRes = (event, context, callback) => {
roleArn = cognitoUnAuthorizedRoleArn;
}

const resetDisabled = resetDisabledParam === "true" ? true : false;
const undoRedoDisabled = undoRedoDisabledParam === "true" ? true : false;
const resetDisabled = resetDisabledParam === "true";
const undoRedoDisabled = undoRedoDisabledParam === "true";

const registerUserPromise = registerUser(accountId, sessionName, roleArn);
registerUserPromise.then(function(){
Expand Down
4 changes: 2 additions & 2 deletions QuickSightAuthentication/lambda/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ const sendRes = (event, context, callback) => {
callback(error);
}

const resetDisabled = resetDisabledParam === "true" ? true : false;
const undoRedoDisabled = undoRedoDisabledParam === "true" ? true : false;
const resetDisabled = resetDisabledParam === "true";
const undoRedoDisabled = undoRedoDisabledParam === "true";

const getDashboardEmbedUrlPromise = getDashboardURL(accountId, dashboardId, userArn, resetDisabled, undoRedoDisabled);
getDashboardEmbedUrlPromise.then(function(result){
Expand Down