Merge pull request #168 from go-enry/tiny-fixes

Small improvements
This commit is contained in:
Alex 2023-09-06 19:29:56 +02:00 committed by GitHub
commit 731c88f592
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -126,5 +126,5 @@ jobs:
if: ${{ steps.commit.outputs.needs_pr == 'true' }}
run: echo ${{ steps.open-pr.outputs.pr_url }}
- name: No PR Created
if: ${{ steps.commit.needs_pr != true }}
if: ${{ steps.commit.needs_pr != 'true' }}
run: echo "No changes for ${{ steps.linguist-release.outputs.linguist_version }}"

View File

@ -275,6 +275,7 @@ func (s *enryTestSuite) TestGetLanguagesByFilename() {
{name: "TestGetLanguagesByFilename_7", filename: "_vimrc", expected: []string{"Vim Script"}},
{name: "TestGetLanguagesByFilename_8", filename: "pom.xml", expected: []string{"Maven POM"}},
{name: "TestGetLanguagesByFilename_9", filename: "", expected: nil},
{name: "TestGetLanguagesByFilename_10", filename: "hi.py", expected: []string{"Python"}},
}
for _, test := range tests {