wkdhkr/dedupper

View on GitHub
src/services/judgment/ActionLogic.js

Summary

Maintainability
A
0 mins
Test Coverage
// @flow

import { TYPE_HOLD } from "../../types/ActionTypes";
import type { ActionType } from "../../types/ActionTypes";

export default class ActionLogic {
  fixAction: (isMayBe: boolean, action: ActionType) => ActionType = (
    isMayBe: boolean,
    action: ActionType
  ): ActionType => (isMayBe ? TYPE_HOLD : action);
}