Skip to content

Commit

Permalink
Merge pull request #7 from xyting/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
rigofunc authored Jan 10, 2017
2 parents f51ab04 + 6ba1ae1 commit 66093fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/NpoiExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ private static IWorkbook InitializeWorkbook(string excelFile)
var setting = Excel.Setting;
if (setting.UserXlsx)
{
if (!string.IsNullOrEmpty(excelFile) || File.Exists(excelFile))
if (!string.IsNullOrEmpty(excelFile) && File.Exists(excelFile))
{
using (var file = new FileStream(excelFile, FileMode.Open, FileAccess.Read))
{
Expand All @@ -305,7 +305,7 @@ private static IWorkbook InitializeWorkbook(string excelFile)
}
else
{
if (!string.IsNullOrEmpty(excelFile) || File.Exists(excelFile))
if (!string.IsNullOrEmpty(excelFile) && File.Exists(excelFile))
{
using (var file = new FileStream(excelFile, FileMode.Open, FileAccess.Read))
{
Expand Down
4 changes: 2 additions & 2 deletions src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.4.0.0")]
[assembly: AssemblyFileVersion("1.4.0.0")]
[assembly: AssemblyVersion("1.4.1.0")]
[assembly: AssemblyFileVersion("1.4.1.0")]

0 comments on commit 66093fc

Please sign in to comment.