Skip to content

Commit

Permalink
Merge pull request OpenDiablo2#338 from b4sen/fix_project_extension
Browse files Browse the repository at this point in the history
Fix bug where the project extension was added unnecessarily
  • Loading branch information
gravestench authored Aug 6, 2021
2 parents 2a0e033 + bf623cf commit afd5973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hscommon/hsproject/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type Project struct {
func CreateNew(fileName string) (*Project, error) {
defaultProjectName := filepath.Base(fileName)

if strings.EqualFold(filepath.Ext(fileName), projectExtension) {
if !strings.EqualFold(filepath.Ext(fileName), projectExtension) {
fileName += projectExtension
}

Expand Down

0 comments on commit afd5973

Please sign in to comment.