fix lint errors in mpq package (#683)

This commit is contained in:
lord 2020-08-04 19:52:54 -07:00 committed by GitHub
parent 6ef931ddd5
commit aa4a936fde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -369,14 +369,17 @@ func (v *MPQ) GetFileList() ([]string, error) {
return filePaths, nil
}
// Path returns the MPQ file path
func (v *MPQ) Path() string {
return v.filePath
}
// Contains returns bool for whether the given filename exists in the mpq
func (v *MPQ) Contains(filename string) bool {
return v.hashEntryMap.Contains(filename)
}
// Size returns the size of the mpq in bytes
func (v *MPQ) Size() uint32 {
return v.data.ArchiveSize
}