Skip to content

Commit

Permalink
Delete unnecessary stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
zourdyzou committed Aug 1, 2022
1 parent fa1a4a7 commit 8a4d56a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ coverage/
.env
# stryker temp files
.stryker-tmp
/reports
2 changes: 1 addition & 1 deletion reports/mutation/mutation.html

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions src/helpers/field/field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ export const fieldGenerator = (size: number, probability: number): Field => {
// Stryker disable next-line EqualityOperator
for (let y = 0; y < size; y++) {
for (let x = 0; x < size; x++) {
/**
* if (restCellsWithBombs === 0) return result;
*/
// Stryker disable next-line EqualityOperator
if (restCellsWithBombs / unprocessedCells > Math.random()) {
result[y][x] = CellState.bomb;
Expand Down
1 change: 0 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import "@styles/styles.scss";
import "normalize.css/normalize.css";

import { GridComponent } from "@components/grid";
import { Field } from "@helpers/field";
import { MockFieldData } from "@helpers/mockData";
import React from "react";
import { createRoot } from "react-dom/client";
Expand Down

0 comments on commit 8a4d56a

Please sign in to comment.