Skip to content

Commit

Permalink
self code review
Browse files Browse the repository at this point in the history
  • Loading branch information
belav committed Mar 1, 2024
1 parent 0571298 commit c374fab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Src/CSharpier.Rider/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pluginGroup = com.intellij.csharpier
pluginName = csharpier
pluginVersion = 1.6.1
pluginVersion = 1.6.1-beta

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public void documentChanged(@NotNull DocumentEvent event) {
}

private void findAndWarmProcess(String filePath) {
// if we didn't find dotnet bail out so we don't get extra errors about being unable to format
if (!DotNetProvider.getInstance(this.project).foundDotNet()) {
return;
}
Expand Down Expand Up @@ -94,6 +95,7 @@ private void findAndWarmProcess(String filePath) {
}

public ICSharpierProcess getProcessFor(String filePath) {
// if we didn't find dotnet bail out so we don't get extra errors about being unable to format
if (!DotNetProvider.getInstance(this.project).foundDotNet()) {
return NullCSharpierProcess.Instance;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static String findOnPath(Logger logger) {

String version = null;

String[] lines = dotnetInfo.split("\\r?\\n");
var lines = dotnetInfo.split("\\r?\\n");
for (var line : lines) {
var pattern = Pattern.compile("^\\s*Version:\\s*([^\\s].*)$");
var matcher = pattern.matcher(line);
Expand Down

0 comments on commit c374fab

Please sign in to comment.