Skip to content

Commit

Permalink
Apply automatic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr authored and github-actions[bot] committed Jun 17, 2024
1 parent 588eadf commit 77cc362
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/logIssueAnalyzers/_logIssueAnalyzers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { Analyzer } from '../handlers/log.handler';
import { createVersionAnalyzer } from './createVersion';
import { farmersDelightNPE } from './farmersDelightNPE';

export const logAnalyzers: Analyzer[] = [createVersionAnalyzer, farmersDelightNPE];
export const logAnalyzers: Analyzer[] = [
createVersionAnalyzer,
farmersDelightNPE,
];

export default logAnalyzers;
6 changes: 4 additions & 2 deletions src/logIssueAnalyzers/farmersDelightNPE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import { Analyzer } from '../handlers/log.handler';
export const farmersDelightNPE: Analyzer = async (log) => {
if (!log.mods) return null;

const regex = log.content.match(/NullPointerException.*class_2960.*farmersdelight\$migrateGet/gs)
const regex = log.content.match(
/NullPointerException.*class_2960.*farmersdelight\$migrateGet/gs
);
if (regex) {
return {
name: 'Farmers Delight Missing Null check',
value: "Farmers Delight is missing a null check, update farmers delight",
value: 'Farmers Delight is missing a null check, update farmers delight',
};
}

Expand Down

0 comments on commit 77cc362

Please sign in to comment.