Remove unnecessary async from 9 functions that have no await
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -365,7 +365,7 @@ function calculateTotalSeconds() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Initializes the duration display based on min/max boundaries and preset value. */
|
/** Initializes the duration display based on min/max boundaries and preset value. */
|
||||||
async function createData() {
|
function createData() {
|
||||||
const size = props.size;
|
const size = props.size;
|
||||||
|
|
||||||
if (maxTotal.value !== null && minTotal.value !== null) {
|
if (maxTotal.value !== null && minTotal.value !== null) {
|
||||||
|
|||||||
@@ -325,7 +325,7 @@ watch(sidebarState, (newValue) => {
|
|||||||
* Switches the map type and re-renders the Cytoscape graph.
|
* Switches the map type and re-renders the Cytoscape graph.
|
||||||
* @param {string} type - 'processMap' or 'bpmn'.
|
* @param {string} type - 'processMap' or 'bpmn'.
|
||||||
*/
|
*/
|
||||||
async function switchMapType(type) {
|
function switchMapType(type) {
|
||||||
mapType.value = type;
|
mapType.value = type;
|
||||||
createCy(type);
|
createCy(type);
|
||||||
}
|
}
|
||||||
@@ -334,7 +334,7 @@ async function switchMapType(type) {
|
|||||||
* Switches the edge curve style and re-renders the graph.
|
* Switches the edge curve style and re-renders the graph.
|
||||||
* @param {string} style - The curve style.
|
* @param {string} style - The curve style.
|
||||||
*/
|
*/
|
||||||
async function switchCurveStyles(style) {
|
function switchCurveStyles(style) {
|
||||||
curveStyle.value = style;
|
curveStyle.value = style;
|
||||||
createCy(mapType.value);
|
createCy(mapType.value);
|
||||||
}
|
}
|
||||||
@@ -343,7 +343,7 @@ async function switchCurveStyles(style) {
|
|||||||
* Switches the layout direction and re-renders the graph.
|
* Switches the layout direction and re-renders the graph.
|
||||||
* @param {string} rankValue - 'LR' (horizontal) or 'TB' (vertical).
|
* @param {string} rankValue - 'LR' (horizontal) or 'TB' (vertical).
|
||||||
*/
|
*/
|
||||||
async function switchRank(rankValue) {
|
function switchRank(rankValue) {
|
||||||
rank.value = rankValue;
|
rank.value = rankValue;
|
||||||
createCy(mapType.value);
|
createCy(mapType.value);
|
||||||
}
|
}
|
||||||
@@ -353,7 +353,7 @@ async function switchRank(rankValue) {
|
|||||||
* @param {string} type - 'freq' or 'duration'.
|
* @param {string} type - 'freq' or 'duration'.
|
||||||
* @param {string} option - The data option (e.g., 'total', 'average').
|
* @param {string} option - The data option (e.g., 'total', 'average').
|
||||||
*/
|
*/
|
||||||
async function switchDataLayerType(type, option) {
|
function switchDataLayerType(type, option) {
|
||||||
dataLayerType.value = type;
|
dataLayerType.value = type;
|
||||||
dataLayerOption.value = option;
|
dataLayerOption.value = option;
|
||||||
createCy(mapType.value);
|
createCy(mapType.value);
|
||||||
|
|||||||
@@ -321,7 +321,7 @@ watch(sidebarState, (newValue) => {
|
|||||||
* Switches the map type and re-renders the Cytoscape graph.
|
* Switches the map type and re-renders the Cytoscape graph.
|
||||||
* @param {string} type - 'processMap' or 'bpmn'.
|
* @param {string} type - 'processMap' or 'bpmn'.
|
||||||
*/
|
*/
|
||||||
async function switchMapType(type) {
|
function switchMapType(type) {
|
||||||
mapType.value = type;
|
mapType.value = type;
|
||||||
createCy(type);
|
createCy(type);
|
||||||
}
|
}
|
||||||
@@ -330,7 +330,7 @@ async function switchMapType(type) {
|
|||||||
* Switches the edge curve style and re-renders the graph.
|
* Switches the edge curve style and re-renders the graph.
|
||||||
* @param {string} style - The curve style ('unbundled-bezier' or 'taxi').
|
* @param {string} style - The curve style ('unbundled-bezier' or 'taxi').
|
||||||
*/
|
*/
|
||||||
async function switchCurveStyles(style) {
|
function switchCurveStyles(style) {
|
||||||
curveStyle.value = style;
|
curveStyle.value = style;
|
||||||
createCy(mapType.value);
|
createCy(mapType.value);
|
||||||
}
|
}
|
||||||
@@ -339,7 +339,7 @@ async function switchCurveStyles(style) {
|
|||||||
* Switches the layout direction and re-renders the graph.
|
* Switches the layout direction and re-renders the graph.
|
||||||
* @param {string} rankValue - 'LR' (horizontal) or 'TB' (vertical).
|
* @param {string} rankValue - 'LR' (horizontal) or 'TB' (vertical).
|
||||||
*/
|
*/
|
||||||
async function switchRank(rankValue) {
|
function switchRank(rankValue) {
|
||||||
rank.value = rankValue;
|
rank.value = rankValue;
|
||||||
createCy(mapType.value);
|
createCy(mapType.value);
|
||||||
}
|
}
|
||||||
@@ -349,7 +349,7 @@ async function switchRank(rankValue) {
|
|||||||
* @param {string} type - 'freq' or 'duration'.
|
* @param {string} type - 'freq' or 'duration'.
|
||||||
* @param {string} option - The data option (e.g., 'total', 'average').
|
* @param {string} option - The data option (e.g., 'total', 'average').
|
||||||
*/
|
*/
|
||||||
async function switchDataLayerType(type, option) {
|
function switchDataLayerType(type, option) {
|
||||||
dataLayerType.value = type;
|
dataLayerType.value = type;
|
||||||
dataLayerOption.value = option;
|
dataLayerOption.value = option;
|
||||||
createCy(mapType.value);
|
createCy(mapType.value);
|
||||||
|
|||||||
Reference in New Issue
Block a user